Class DefaultAgendaEventListenerFactory
- java.lang.Object
-
- de.hybris.platform.droolsruleengineservices.eventlisteners.impl.DefaultAgendaEventListenerFactory
-
- All Implemented Interfaces:
AgendaEventListenerFactory
public class DefaultAgendaEventListenerFactory extends java.lang.Object implements AgendaEventListenerFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultAgendaEventListenerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.kie.api.event.rule.AgendaEventListener>
createAgendaEventListeners(AbstractRuleEngineContextModel ctx)
returns a set ofAgendaEventListener
s based on the given contextprotected RuleMatchCountListener
createRuleMatchCountListener(DroolsRuleEngineContextModel ctx)
creates a RuleMatchCountListener based on thectx.ruleFiringLimit
attribute.
-
-
-
Method Detail
-
createAgendaEventListeners
public java.util.Set<org.kie.api.event.rule.AgendaEventListener> createAgendaEventListeners(AbstractRuleEngineContextModel ctx)
Description copied from interface:AgendaEventListenerFactory
returns a set ofAgendaEventListener
s based on the given context- Specified by:
createAgendaEventListeners
in interfaceAgendaEventListenerFactory
- Parameters:
ctx
- the context- Returns:
- a set of AgendaEventListener objects
-
createRuleMatchCountListener
protected RuleMatchCountListener createRuleMatchCountListener(DroolsRuleEngineContextModel ctx)
creates a RuleMatchCountListener based on thectx.ruleFiringLimit
attribute.- Parameters:
ctx
- the context to use- Returns:
- a new RuleMatchCountListener or null if the
ctx.ruleFiringLimit
attribute is null
-
-