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