public class DefaultHitPolicyHandlerRegistry extends Object implements DmnHitPolicyHandlerRegistry
Modifier and Type | Field and Description |
---|---|
protected static Map<HitPolicyEntry,DmnHitPolicyHandler> |
handlers |
Constructor and Description |
---|
DefaultHitPolicyHandlerRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(HitPolicy hitPolicy,
BuiltinAggregator builtinAggregator,
DmnHitPolicyHandler hitPolicyHandler)
Register a hit policy handler for a
HitPolicy and BuiltinAggregator combination. |
protected static Map<HitPolicyEntry,DmnHitPolicyHandler> |
getDefaultHandlers() |
DmnHitPolicyHandler |
getHandler(HitPolicy hitPolicy,
BuiltinAggregator builtinAggregator)
Get a hit policy for a
HitPolicy and BuiltinAggregator combination. |
protected static final Map<HitPolicyEntry,DmnHitPolicyHandler> handlers
protected static Map<HitPolicyEntry,DmnHitPolicyHandler> getDefaultHandlers()
public DmnHitPolicyHandler getHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator)
DmnHitPolicyHandlerRegistry
HitPolicy
and BuiltinAggregator
combination.getHandler
in interface DmnHitPolicyHandlerRegistry
hitPolicy
- the hit policybuiltinAggregator
- the aggregator or null if not requiredpublic void addHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler)
DmnHitPolicyHandlerRegistry
HitPolicy
and BuiltinAggregator
combination.addHandler
in interface DmnHitPolicyHandlerRegistry
hitPolicy
- the hit policybuiltinAggregator
- the aggregator or null if not requiredhitPolicyHandler
- the hit policy handler to registryCopyright © 2020. All rights reserved.