T - The strategy type.public class SimpleStrategyRegistrationImpl<T> extends Object implements StrategyRegistration<T>
A simple implementation of StrategyRegistration.
| Constructor and Description |
|---|
SimpleStrategyRegistrationImpl(Class<T> strategyRole,
Class<? extends T> strategyImplementation,
Iterable<String> selectorNames)
Constructs a SimpleStrategyRegistrationImpl.
|
SimpleStrategyRegistrationImpl(Class<T> strategyRole,
Class<? extends T> strategyImplementation,
String... selectorNames)
Constructs a SimpleStrategyRegistrationImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
getSelectorNames()
Any registered names for this strategy registration.
|
Class<? extends T> |
getStrategyImplementation()
The strategy implementation class.
|
Class<T> |
getStrategyRole()
The strategy role.
|
public SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, Iterable<String> selectorNames)
Constructs a SimpleStrategyRegistrationImpl.
strategyRole - The strategy contractstrategyImplementation - The strategy implementation classselectorNames - The selection/registration names for this implementationpublic SimpleStrategyRegistrationImpl(Class<T> strategyRole, Class<? extends T> strategyImplementation, String... selectorNames)
Constructs a SimpleStrategyRegistrationImpl.
strategyRole - The strategy contractstrategyImplementation - The strategy implementation classselectorNames - The selection/registration names for this implementationpublic Class<T> getStrategyRole()
StrategyRegistrationThe strategy role. Best practice says this should be an interface.
getStrategyRole in interface StrategyRegistration<T>public Iterable<String> getSelectorNames()
StrategyRegistrationAny registered names for this strategy registration.
getSelectorNames in interface StrategyRegistration<T>public Class<? extends T> getStrategyImplementation()
StrategyRegistrationThe strategy implementation class.
getStrategyImplementation in interface StrategyRegistration<T>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.