类 StrategySelectorBuilder
- java.lang.Object
-
- org.hibernate.boot.registry.selector.internal.StrategySelectorBuilder
-
public class StrategySelectorBuilder extends Object
Builder for StrategySelector instances.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 StrategySelectorBuilder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> voidaddExplicitStrategyRegistration(Class<T> strategy, Class<? extends T> implementation, String name)Adds an explicit (as opposed to discovered) strategy registration.<T> voidaddExplicitStrategyRegistration(StrategyRegistration<T> strategyRegistration)Adds an explicit (as opposed to discovered) strategy registration.StrategySelectorbuildSelector(ClassLoaderService classLoaderService)Builds the selector.
-
-
-
方法详细资料
-
addExplicitStrategyRegistration
public <T> void addExplicitStrategyRegistration(Class<T> strategy, Class<? extends T> implementation, String name)
Adds an explicit (as opposed to discovered) strategy registration.- 类型参数:
T- The type of the strategy. Used to make sure that the strategy and implementation are type compatible.- 参数:
strategy- The strategyimplementation- The strategy implementationname- The registered name
-
addExplicitStrategyRegistration
public <T> void addExplicitStrategyRegistration(StrategyRegistration<T> strategyRegistration)
Adds an explicit (as opposed to discovered) strategy registration.- 类型参数:
T- The type of the strategy. Used to make sure that the strategy and implementation are type compatible.- 参数:
strategyRegistration- The strategy implementation registration.
-
buildSelector
public StrategySelector buildSelector(ClassLoaderService classLoaderService)
Builds the selector.- 参数:
classLoaderService- The class loading service used to (attempt to) resolve any un-registered strategy implementations.- 返回:
- The selector.
-
-