org.drools.base
Class RuleNameStartsWithAgendaFilter

java.lang.Object
  extended by org.drools.base.RuleNameStartsWithAgendaFilter
All Implemented Interfaces:
org.drools.runtime.rule.AgendaFilter

public class RuleNameStartsWithAgendaFilter
extends Object
implements AgendaFilter, org.drools.runtime.rule.AgendaFilter

Filters activations based on a specified rule name prefix.


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

Constructor Detail

RuleNameStartsWithAgendaFilter

public RuleNameStartsWithAgendaFilter(String prefix)

RuleNameStartsWithAgendaFilter

public RuleNameStartsWithAgendaFilter(String prefix,
                                      boolean accept)
Method Detail

accept

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

Parameters:
activation - The activation to fire.
Returns:
true if the activation should be fired; otherwise false

accept

public boolean accept(org.drools.runtime.rule.Activation activation)
Specified by:
accept in interface org.drools.runtime.rule.AgendaFilter


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.