org.jwall.audit.processor
Class AbstractEventProcessor<E extends Event>

java.lang.Object
  extended by org.jwall.audit.processor.AbstractEventProcessor<E>
All Implemented Interfaces:
EventProcessor<E>

public abstract class AbstractEventProcessor<E extends Event>
extends Object
implements EventProcessor<E>


Field Summary
 
Fields inherited from interface org.jwall.audit.EventProcessor
DELETE_FLAG
 
Constructor Summary
AbstractEventProcessor(Double defaultPriority)
           
 
Method Summary
 Double getPriority()
           
 boolean isEnabled()
           
 E processEvent(E event, Map<String,Object> context)
          This method is called upon event reception.
 void setEnabled(boolean enabled)
           
 void setPriority(Double priority)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventProcessor

public AbstractEventProcessor(Double defaultPriority)
Method Detail

processEvent

public E processEvent(E event,
                      Map<String,Object> context)
                             throws Exception
Description copied from interface: EventProcessor
This method is called upon event reception. The given map provides a context to communicate data between several event-processors. The implementor of this interface needs to take care that calls to this class my come from different threads, i.e. no state should be stored in the class to diminish the risk of concurrency problems.

Specified by:
processEvent in interface EventProcessor<E extends Event>
Returns:
Throws:
Exception

getPriority

public Double getPriority()
Returns:
the priority

setPriority

public void setPriority(Double priority)
Parameters:
priority - the priority to set

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

isEnabled

public boolean isEnabled()


Copyright © 2012 jwall.org. All Rights Reserved.