org.drools.audit.event
Class ActivationLogEventFilter

java.lang.Object
  extended by org.drools.audit.event.ActivationLogEventFilter
All Implemented Interfaces:
ILogEventFilter

public class ActivationLogEventFilter
extends Object
implements ILogEventFilter

An event filter that can be used to filter assertion events. By default, all events are allowed. You can filter out any of the four types of assertion events by setting the allow boolean for that type to false.


Constructor Summary
ActivationLogEventFilter(boolean allowActivationCreatedEvents, boolean allowActivationCancelledEvents, boolean allowBeforeActivationFireEvents, boolean allowAfterActivationFireEvents)
           
 
Method Summary
 boolean acceptEvent(LogEvent event)
          Returns whether the given event should be filtered from the event log or not.
 void setAllowActivationCancelledEvents(boolean allowActivationCancelledEvents)
           
 void setAllowActivationCreatedEvents(boolean allowActivationCreatedEvents)
           
 void setAllowAfterActivationFireEvents(boolean allowAfterActivationFireEvents)
           
 void setAllowBeforeActivationFireEvents(boolean allowBeforeActivationFireEvents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationLogEventFilter

public ActivationLogEventFilter(boolean allowActivationCreatedEvents,
                                boolean allowActivationCancelledEvents,
                                boolean allowBeforeActivationFireEvents,
                                boolean allowAfterActivationFireEvents)
Method Detail

acceptEvent

public boolean acceptEvent(LogEvent event)
Description copied from interface: ILogEventFilter
Returns whether the given event should be filtered from the event log or not.

Specified by:
acceptEvent in interface ILogEventFilter
Parameters:
event - The log event
Returns:
Whether the event should be filtered from the event log or not.
See Also:
ILogEventFilter

setAllowActivationCreatedEvents

public void setAllowActivationCreatedEvents(boolean allowActivationCreatedEvents)

setAllowActivationCancelledEvents

public void setAllowActivationCancelledEvents(boolean allowActivationCancelledEvents)

setAllowBeforeActivationFireEvents

public void setAllowBeforeActivationFireEvents(boolean allowBeforeActivationFireEvents)

setAllowAfterActivationFireEvents

public void setAllowAfterActivationFireEvents(boolean allowAfterActivationFireEvents)


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