Interface NamedStrategyContributions
public interface NamedStrategyContributions
Target for NamedStrategyContributor
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<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
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.
-