Class SimpleStrategyRegistrationImpl<T>

  • Type Parameters:
    T - The strategy type.
    All Implemented Interfaces:
    StrategyRegistration<T>

    public class SimpleStrategyRegistrationImpl<T>
    extends java.lang.Object
    implements StrategyRegistration<T>
    A simple implementation of StrategyRegistration.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleStrategyRegistrationImpl​(java.lang.Class<T> strategyRole, java.lang.Class<? extends T> strategyImplementation, java.lang.Iterable<java.lang.String> selectorNames)
      Constructs a SimpleStrategyRegistrationImpl.
      SimpleStrategyRegistrationImpl​(java.lang.Class<T> strategyRole, java.lang.Class<? extends T> strategyImplementation, java.lang.String... selectorNames)
      Constructs a SimpleStrategyRegistrationImpl.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleStrategyRegistrationImpl

        public SimpleStrategyRegistrationImpl​(java.lang.Class<T> strategyRole,
                                              java.lang.Class<? extends T> strategyImplementation,
                                              java.lang.Iterable<java.lang.String> selectorNames)
        Constructs a SimpleStrategyRegistrationImpl.
        Parameters:
        strategyRole - The strategy contract
        strategyImplementation - The strategy implementation class
        selectorNames - The selection/registration names for this implementation
      • SimpleStrategyRegistrationImpl

        public SimpleStrategyRegistrationImpl​(java.lang.Class<T> strategyRole,
                                              java.lang.Class<? extends T> strategyImplementation,
                                              java.lang.String... selectorNames)
        Constructs a SimpleStrategyRegistrationImpl.
        Parameters:
        strategyRole - The strategy contract
        strategyImplementation - The strategy implementation class
        selectorNames - The selection/registration names for this implementation