Class DefaultHitPolicyHandlerRegistry
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.hitpolicy.DefaultHitPolicyHandlerRegistry
-
- All Implemented Interfaces:
DmnHitPolicyHandlerRegistry
public class DefaultHitPolicyHandlerRegistry extends Object implements DmnHitPolicyHandlerRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<HitPolicyEntry,DmnHitPolicyHandler>
handlers
-
Constructor Summary
Constructors Constructor Description DefaultHitPolicyHandlerRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler)
Register a hit policy handler for aHitPolicy
andBuiltinAggregator
combination.protected static Map<HitPolicyEntry,DmnHitPolicyHandler>
getDefaultHandlers()
DmnHitPolicyHandler
getHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator)
Get a hit policy for aHitPolicy
andBuiltinAggregator
combination.
-
-
-
Field Detail
-
handlers
protected static final Map<HitPolicyEntry,DmnHitPolicyHandler> handlers
-
-
Method Detail
-
getDefaultHandlers
protected static Map<HitPolicyEntry,DmnHitPolicyHandler> getDefaultHandlers()
-
getHandler
public DmnHitPolicyHandler getHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator)
Description copied from interface:DmnHitPolicyHandlerRegistry
Get a hit policy for aHitPolicy
andBuiltinAggregator
combination.- Specified by:
getHandler
in interfaceDmnHitPolicyHandlerRegistry
- Parameters:
hitPolicy
- the hit policybuiltinAggregator
- the aggregator or null if not required- Returns:
- the handler which is registered for this hit policy, or null if none exist
-
addHandler
public void addHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler)
Description copied from interface:DmnHitPolicyHandlerRegistry
Register a hit policy handler for aHitPolicy
andBuiltinAggregator
combination.- Specified by:
addHandler
in interfaceDmnHitPolicyHandlerRegistry
- Parameters:
hitPolicy
- the hit policybuiltinAggregator
- the aggregator or null if not requiredhitPolicyHandler
- the hit policy handler to registry
-
-