org.jwall.audit
Interface EventProcessor<E extends Event>
- Type Parameters:
E -
- All Known Implementing Classes:
- AbstractEventProcessor, AuditEventRuleEngine, DefaultRequestHost, DNSLookup, EventRuleEngine, JavaScript, JRubyProcessor, PersistentCollectionProcessor, RuleTagProcessor, XForwardedForResolver
public interface EventProcessor<E extends Event>
This interface defines an abstract event processor class which is able
to process events for a given generic type class.
In contrast to an EventListener, classes implementing this interface are
responsible for any pre-processing of an event.
- Author:
- Christian Bockermann <chris@jwall.org>
DELETE_FLAG
static final String DELETE_FLAG
- See Also:
- Constant Field Values
processEvent
E processEvent(E event,
Map<String,Object> context)
throws Exception
- 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.
- Parameters:
event - context -
- Returns:
-
- Throws:
Exception
Copyright © 2012 jwall.org. All Rights Reserved.