org.anadix.utils
Class DebugAgendaEventListener

java.lang.Object
  extended by org.drools.event.rule.DefaultAgendaEventListener
      extended by org.anadix.utils.DebugAgendaEventListener
All Implemented Interfaces:
EventListener, org.drools.event.rule.AgendaEventListener

public class DebugAgendaEventListener
extends org.drools.event.rule.DefaultAgendaEventListener

My implementation of AgendaEventListener from Drools. It is used to log the information to given logger.

Since:
0.4.0
Version:
$Id: $
Author:
tomason

Constructor Summary
DebugAgendaEventListener(org.jboss.logging.Logger logger)
          Constructor
DebugAgendaEventListener(org.jboss.logging.Logger logger, org.jboss.logging.Logger.Level level)
          Constructor
 
Method Summary
 void activationCancelled(org.drools.event.rule.ActivationCancelledEvent event)
          
 void activationCreated(org.drools.event.rule.ActivationCreatedEvent event)
          
 void afterActivationFired(org.drools.event.rule.AfterActivationFiredEvent event)
          
 void agendaGroupPopped(org.drools.event.rule.AgendaGroupPoppedEvent event)
          
 void agendaGroupPushed(org.drools.event.rule.AgendaGroupPushedEvent event)
          
 void beforeActivationFired(org.drools.event.rule.BeforeActivationFiredEvent event)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugAgendaEventListener

public DebugAgendaEventListener(org.jboss.logging.Logger logger)
Constructor

Parameters:
logger - - logger to log to

DebugAgendaEventListener

public DebugAgendaEventListener(org.jboss.logging.Logger logger,
                                org.jboss.logging.Logger.Level level)
Constructor

Parameters:
logger - - logger to log to
level - - level to log messages with
Method Detail

activationCreated

public void activationCreated(org.drools.event.rule.ActivationCreatedEvent event)

Specified by:
activationCreated in interface org.drools.event.rule.AgendaEventListener
Overrides:
activationCreated in class org.drools.event.rule.DefaultAgendaEventListener

activationCancelled

public void activationCancelled(org.drools.event.rule.ActivationCancelledEvent event)

Specified by:
activationCancelled in interface org.drools.event.rule.AgendaEventListener
Overrides:
activationCancelled in class org.drools.event.rule.DefaultAgendaEventListener

beforeActivationFired

public void beforeActivationFired(org.drools.event.rule.BeforeActivationFiredEvent event)

Specified by:
beforeActivationFired in interface org.drools.event.rule.AgendaEventListener
Overrides:
beforeActivationFired in class org.drools.event.rule.DefaultAgendaEventListener

afterActivationFired

public void afterActivationFired(org.drools.event.rule.AfterActivationFiredEvent event)

Specified by:
afterActivationFired in interface org.drools.event.rule.AgendaEventListener
Overrides:
afterActivationFired in class org.drools.event.rule.DefaultAgendaEventListener

agendaGroupPushed

public void agendaGroupPushed(org.drools.event.rule.AgendaGroupPushedEvent event)

Specified by:
agendaGroupPushed in interface org.drools.event.rule.AgendaEventListener
Overrides:
agendaGroupPushed in class org.drools.event.rule.DefaultAgendaEventListener

agendaGroupPopped

public void agendaGroupPopped(org.drools.event.rule.AgendaGroupPoppedEvent event)

Specified by:
agendaGroupPopped in interface org.drools.event.rule.AgendaEventListener
Overrides:
agendaGroupPopped in class org.drools.event.rule.DefaultAgendaEventListener


Copyright © 2011. All Rights Reserved.