Interface StrategyRegistration<T>
-
- Type Parameters:
T- The type of the strategy described by this implementation registration.
- All Known Implementing Classes:
SimpleStrategyRegistrationImpl
public interface StrategyRegistration<T>Describes the registration of a named strategy implementation.A strategy + selector name should resolve to a single implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<String>getSelectorNames()Any registered names for this strategy registration.Class<? extends T>getStrategyImplementation()The strategy implementation class.Class<T>getStrategyRole()The strategy role.
-
-
-
Method Detail
-
getStrategyRole
Class<T> getStrategyRole()
The strategy role. Best practice says this should be an interface.- Returns:
- The strategy contract/role.
-
getSelectorNames
Iterable<String> getSelectorNames()
Any registered names for this strategy registration.- Returns:
- The registered selection names.
-
-