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:StrategyRegistration
The strategy role. Best practice says this should be an interface.- Specified by:
getStrategyRole
in interfaceStrategyRegistration<T>
- Returns:
- The strategy contract/role.
-
getSelectorNames
Description copied from interface:StrategyRegistration
Any registered names for this strategy registration.- Specified by:
getSelectorNames
in interfaceStrategyRegistration<T>
- Returns:
- The registered selection names.
-
getStrategyImplementation
Description copied from interface:StrategyRegistration
The strategy implementation class.- Specified by:
getStrategyImplementation
in interfaceStrategyRegistration<T>
- Returns:
- The strategy implementation.
-