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 java.lang.Iterable<java.lang.String>
getSelectorNames()
Any registered names for this strategy registration.java.lang.Class<? extends T>
getStrategyImplementation()
The strategy implementation class.java.lang.Class<T>
getStrategyRole()
The strategy role.
-
-
-
Method Detail
-
getStrategyRole
java.lang.Class<T> getStrategyRole()
The strategy role. Best practice says this should be an interface.- Returns:
- The strategy contract/role.
-
getSelectorNames
java.lang.Iterable<java.lang.String> getSelectorNames()
Any registered names for this strategy registration.- Returns:
- The registered selection names.
-
getStrategyImplementation
java.lang.Class<? extends T> getStrategyImplementation()
The strategy implementation class.- Returns:
- The strategy implementation.
-
-