org.jboss.reliance.drools.core.aspects
Class FireAllRulesAspect

java.lang.Object
  extended by org.jboss.reliance.drools.core.aspects.FireAllRulesAspect
Direct Known Subclasses:
FlagAwareAspect

public class FireAllRulesAspect
extends Object

Invocation aware working memory handler. Checking if we need to fire all rules.

Author:
Ales Justin

Constructor Summary
FireAllRulesAspect()
           
 
Method Summary
 Object invoke(org.jboss.aop.joinpoint.MethodInvocation invocation)
          Inovke method on working memory instance, and conditionally fire all rules.
 void setFilter(org.drools.spi.AgendaFilter filter)
          Set the filter.
 void setLimit(Integer limit)
          Set the limit.
protected  boolean shouldFileAllRules(Method method, Object[] args)
          Check if we should fire all rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FireAllRulesAspect

public FireAllRulesAspect()
Method Detail

shouldFileAllRules

protected boolean shouldFileAllRules(Method method,
                                     Object[] args)
Check if we should fire all rules.

Parameters:
method - the method
args - the arguments
Returns:
true if we should fire

invoke

public Object invoke(org.jboss.aop.joinpoint.MethodInvocation invocation)
              throws Throwable
Inovke method on working memory instance, and conditionally fire all rules.

Parameters:
invocation - the invocation
Returns:
invocation's result
Throws:
Throwable - for any error

setFilter

public void setFilter(org.drools.spi.AgendaFilter filter)
Set the filter.

Parameters:
filter - the agenda filter

setLimit

public void setLimit(Integer limit)
Set the limit.

Parameters:
limit - the fire limit


Copyright © 2008 JBoss Inc.. All Rights Reserved.