Class SimpleStrategyRegistrationImpl<T>
java.lang.Object
org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl<T>
- Type Parameters:
T- The strategy type.
- All Implemented Interfaces:
StrategyRegistration<T>
A simple implementation of StrategyRegistration.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleStrategyRegistrationImpl(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. -
Method Summary
Modifier and TypeMethodDescriptionAny registered names for this strategy registration.The strategy implementation class.The strategy role.
-
Constructor Details
-
SimpleStrategyRegistrationImpl
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, Iterable<String> selectorNames) Constructs a SimpleStrategyRegistrationImpl.- Parameters:
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.- Parameters:
strategyRole- The strategy contractstrategyImplementation- The strategy implementation classselectorNames- The selection/registration names for this implementation
-
-
Method Details
-
getStrategyRole
Description copied from interface:StrategyRegistrationThe strategy role. Best practice says this should be an interface.- Specified by:
getStrategyRolein interfaceStrategyRegistration<T>- Returns:
- The strategy contract/role.
-
getSelectorNames
Description copied from interface:StrategyRegistrationAny registered names for this strategy registration.- Specified by:
getSelectorNamesin interfaceStrategyRegistration<T>- Returns:
- The registered selection names.
-
getStrategyImplementation
Description copied from interface:StrategyRegistrationThe strategy implementation class.- Specified by:
getStrategyImplementationin interfaceStrategyRegistration<T>- Returns:
- The strategy implementation.
-