接口 StrategyRegistration<T>

  • 类型参数:
    T - The type of the strategy described by this implementation registration.
    所有已知实现类:
    SimpleStrategyRegistrationImpl

    public interface StrategyRegistration<T>
    Describes the registration of a named strategy implementation. A strategy + selector name should resolve to a single implementation.
    作者:
    Steve Ebersole
    • 方法详细资料

      • getStrategyRole

        Class<T> getStrategyRole()
        The strategy role. Best practice says this should be an interface.
        返回:
        The strategy contract/role.
      • getSelectorNames

        Iterable<String> getSelectorNames()
        Any registered names for this strategy registration.
        返回:
        The registered selection names.
      • getStrategyImplementation

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