Class DefaultAgendaEventListenerFactory
java.lang.Object
de.hybris.platform.droolsruleengineservices.eventlisteners.impl.DefaultAgendaEventListenerFactory
- All Implemented Interfaces:
AgendaEventListenerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.kie.api.event.rule.AgendaEventListener>returns a set ofAgendaEventListeners based on the given contextprotected RuleMatchCountListenercreates a RuleMatchCountListener based on thectx.ruleFiringLimitattribute.
-
Constructor Details
-
DefaultAgendaEventListenerFactory
public DefaultAgendaEventListenerFactory()
-
-
Method Details
-
createAgendaEventListeners
public Set<org.kie.api.event.rule.AgendaEventListener> createAgendaEventListeners(AbstractRuleEngineContextModel ctx) Description copied from interface:AgendaEventListenerFactoryreturns a set ofAgendaEventListeners based on the given context- Specified by:
createAgendaEventListenersin interfaceAgendaEventListenerFactory- Parameters:
ctx- the context- Returns:
- a set of AgendaEventListener objects
-
createRuleMatchCountListener
creates a RuleMatchCountListener based on thectx.ruleFiringLimitattribute.- Parameters:
ctx- the context to use- Returns:
- a new RuleMatchCountListener or null if the
ctx.ruleFiringLimitattribute is null
-