Interface DmnHitPolicyHandlerRegistry
- All Known Implementing Classes:
DefaultHitPolicyHandlerRegistry
public interface DmnHitPolicyHandlerRegistry
Registry of hit policy handlers
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler) Register a hit policy handler for aHitPolicy
andBuiltinAggregator
combination.getHandler
(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator) Get a hit policy for aHitPolicy
andBuiltinAggregator
combination.
-
Method Details
-
getHandler
Get a hit policy for aHitPolicy
andBuiltinAggregator
combination.- 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
void addHandler(HitPolicy hitPolicy, BuiltinAggregator builtinAggregator, DmnHitPolicyHandler hitPolicyHandler) Register a hit policy handler for aHitPolicy
andBuiltinAggregator
combination.- Parameters:
hitPolicy
- the hit policybuiltinAggregator
- the aggregator or null if not requiredhitPolicyHandler
- the hit policy handler to registry
-