org.drools.spi
Class RuleNameEqualsAgendaFilter

java.lang.Object
  extended byorg.drools.spi.RuleNameEqualsAgendaFilter
All Implemented Interfaces:
AgendaFilter

public class RuleNameEqualsAgendaFilter
extends java.lang.Object
implements AgendaFilter

Filters activations based on an exact match of a rule name.

 

Constructor Summary
RuleNameEqualsAgendaFilter(java.lang.String name)
           
RuleNameEqualsAgendaFilter(java.lang.String name, boolean accept)
           
 
Method Summary
 boolean accept(Activation activation)
          Determine if a given activation should be fired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleNameEqualsAgendaFilter

public RuleNameEqualsAgendaFilter(java.lang.String name)

RuleNameEqualsAgendaFilter

public RuleNameEqualsAgendaFilter(java.lang.String name,
                                  boolean accept)
Method Detail

accept

public boolean accept(Activation activation)
Description copied from interface: AgendaFilter
Determine if a given activation should be fired.

Specified by:
accept in interface AgendaFilter
Parameters:
activation - The activation to fire.
Returns:
true if the activation should be fired; otherwise false