public class EventInterceptors
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
EventInterceptor
.
Thread safe.
Constructor and Description |
---|
EventInterceptors() |
Modifier and Type | Method and Description |
---|---|
void |
addEventInterceptor(EventInterceptor ei)
Adds an event interceptor.
|
void |
afterProcessEvent(Event event)
|
Event |
beforePostEvent(Event event)
|
Event |
beforeProcessEvent(Event event)
|
Event |
beforeSendEvent(Event event)
|
java.lang.Object |
clone() |
boolean |
removeEventInterceptor(java.lang.Class klass)
Removes an event interceptor with the specified class.
|
boolean |
removeEventInterceptor(EventInterceptor ei)
Removes an event interceptor.
|
public void addEventInterceptor(EventInterceptor ei)
public boolean removeEventInterceptor(EventInterceptor ei)
Note: we use the equals method to test whether two interceptors are the same.
public boolean removeEventInterceptor(java.lang.Class klass)
Note: we tests whether an interceptor is an instance of the specified class. At most one instance is removed.
public void afterProcessEvent(Event event)
public java.lang.Object clone()
clone
in class java.lang.Object
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.