类 SimpleStrategyRegistrationImpl<T>
- java.lang.Object
-
- org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl<T>
-
- 类型参数:
T- The strategy type.
- 所有已实现的接口:
StrategyRegistration<T>
public class SimpleStrategyRegistrationImpl<T> extends Object implements StrategyRegistration<T>
A simple implementation of StrategyRegistration.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, Iterable<String> selectorNames)Constructs a SimpleStrategyRegistrationImpl.SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, String... selectorNames)Constructs a SimpleStrategyRegistrationImpl.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Iterable<String>getSelectorNames()Any registered names for this strategy registration.Class<? extends T>getStrategyImplementation()The strategy implementation class.Class<T>getStrategyRole()The strategy role.
-
-
-
构造器详细资料
-
SimpleStrategyRegistrationImpl
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, Iterable<String> selectorNames)
Constructs a SimpleStrategyRegistrationImpl.- 参数:
strategyRole- The strategy contractstrategyImplementation- The strategy implementation classselectorNames- The selection/registration names for this implementation
-
SimpleStrategyRegistrationImpl
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, String... selectorNames)
Constructs a SimpleStrategyRegistrationImpl.- 参数:
strategyRole- The strategy contractstrategyImplementation- The strategy implementation classselectorNames- The selection/registration names for this implementation
-
-
方法详细资料
-
getStrategyRole
public Class<T> getStrategyRole()
从接口复制的说明:StrategyRegistrationThe strategy role. Best practice says this should be an interface.- 指定者:
getStrategyRole在接口中StrategyRegistration<T>- 返回:
- The strategy contract/role.
-
getSelectorNames
public Iterable<String> getSelectorNames()
从接口复制的说明:StrategyRegistrationAny registered names for this strategy registration.- 指定者:
getSelectorNames在接口中StrategyRegistration<T>- 返回:
- The registered selection names.
-
getStrategyImplementation
public Class<? extends T> getStrategyImplementation()
从接口复制的说明:StrategyRegistrationThe strategy implementation class.- 指定者:
getStrategyImplementation在接口中StrategyRegistration<T>- 返回:
- The strategy implementation.
-
-