Interface NamedStrategyContributions


public interface NamedStrategyContributions
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    contributeStrategyImplementor(Class<T> strategy, Class<? extends T> implementation, String... names)
    Registers a named implementor of a particular strategy contract.
    <T> void
    removeStrategyImplementor(Class<T> strategy, Class<? extends T> implementation)
    Un-registers a named implementor of a particular strategy contract.
  • Method Details

    • contributeStrategyImplementor

      <T> void contributeStrategyImplementor(Class<T> strategy, Class<? extends T> implementation, String... names)
      Registers a named implementor of a particular strategy contract.
      Type Parameters:
      T - The strategy type.
      Parameters:
      strategy - The strategy contract.
      implementation - The implementation class.
      names - The registration names.
    • removeStrategyImplementor

      <T> void removeStrategyImplementor(Class<T> strategy, Class<? extends T> implementation)
      Un-registers a named implementor of a particular strategy contract. Un-registers all named registrations for the given strategy contract naming the given class.
      Type Parameters:
      T - The strategy type.
      Parameters:
      strategy - The strategy contract.
      implementation - The implementation class.