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 Details

    • 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.
    • getStrategyImplementation

      Class<? extends T> getStrategyImplementation()
      The strategy implementation class.
      Returns:
      The strategy implementation.