T
- The strategy type.public class SimpleStrategyRegistrationImpl<T> extends java.lang.Object implements StrategyRegistration<T>
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public SimpleStrategyRegistrationImpl(java.lang.Class<T> strategyRole, java.lang.Class<? extends T> strategyImplementation, java.lang.Iterable<java.lang.String> selectorNames)
strategyRole
- The strategy contractstrategyImplementation
- The strategy implementation classselectorNames
- The selection/registration names for this implementationpublic SimpleStrategyRegistrationImpl(java.lang.Class<T> strategyRole, java.lang.Class<? extends T> strategyImplementation, java.lang.String... selectorNames)
strategyRole
- The strategy contractstrategyImplementation
- The strategy implementation classselectorNames
- The selection/registration names for this implementationpublic java.lang.Class<T> getStrategyRole()
StrategyRegistration
getStrategyRole
in interface StrategyRegistration<T>
public java.lang.Iterable<java.lang.String> getSelectorNames()
StrategyRegistration
getSelectorNames
in interface StrategyRegistration<T>
public java.lang.Class<? extends T> getStrategyImplementation()
StrategyRegistration
getStrategyImplementation
in interface StrategyRegistration<T>
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.