Class DefaultHitPolicyHandlerRegistry
java.lang.Object
org.camunda.bpm.dmn.engine.impl.hitpolicy.DefaultHitPolicyHandlerRegistry
- All Implemented Interfaces:
DmnHitPolicyHandlerRegistry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler) Register a hit policy handler for aHitPolicy
andBuiltinAggregator
combination.protected static Map<HitPolicyEntry,
DmnHitPolicyHandler> getHandler
(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator) Get a hit policy for aHitPolicy
andBuiltinAggregator
combination.
-
Field Details
-
handlers
-
-
Constructor Details
-
DefaultHitPolicyHandlerRegistry
public DefaultHitPolicyHandlerRegistry()
-
-
Method Details
-
getDefaultHandlers
-
getHandler
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
-