public abstract class AbstractStrategyRegistry<S,T> extends Object
| Constructor and Description |
|---|
AbstractStrategyRegistry() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canHandle(S strategy,
T context) |
boolean |
canHandle(S strategy,
T context,
Context additionalContext) |
protected Optional<S> |
findDefaultStrategy(T context,
Context additionalContext) |
protected Stream<Optional<S>> |
findOrderedStrategies(T context,
Context additionalContext)
Deprecated.
since 6.6, use #getOrderedStrategies(T, Context) instead
|
protected List<S> |
findPreferredStrategies(T context,
Context additionalContext) |
protected Optional<S> |
findPreferredStrategy(T context,
Context additionalContext)
Deprecated.
since 6.6, use #findPreferredStrategies(T, Context) instead
|
S |
getDefaultStrategy() |
protected List<S> |
getOrderedStrategies(T context,
Context additionalContext) |
Optional<List<S>> |
getStrategies() |
S |
getStrategy(T context) |
S |
getStrategy(T context,
Context additionalContext) |
void |
setDefaultStrategy(S defaultStrategy) |
void |
setStrategies(List<S> strategies) |
public S getDefaultStrategy()
public void setDefaultStrategy(S defaultStrategy)
@Deprecated protected Stream<Optional<S>> findOrderedStrategies(T context, Context additionalContext)
@Deprecated protected Optional<S> findPreferredStrategy(T context, Context additionalContext)
protected List<S> findPreferredStrategies(T context, Context additionalContext)
Copyright © 2018. All rights reserved.