|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.monitoring.CompositeApplicationEventListener
public class CompositeApplicationEventListener
application event listener that aggregates more event listeners into one.
Calling listener methods on this listener will cause calling methods on all aggregated listener.
| Constructor Summary | |
|---|---|
CompositeApplicationEventListener(List<ApplicationEventListener> applicationEventListeners)
Creates a new instance of composite event listener. |
|
| Method Summary | |
|---|---|
void |
onEvent(ApplicationEvent event)
Process the application event. |
RequestEventListener |
onRequest(RequestEvent requestEvent)
Process a new request and return a request event listener if
listening to request events is required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeApplicationEventListener(List<ApplicationEventListener> applicationEventListeners)
applicationEventListeners - List of application event listener that should be aggregated.| Method Detail |
|---|
public void onEvent(ApplicationEvent event)
ApplicationEventListenerevent. This method is called when new event occurs.
onEvent in interface ApplicationEventListenerevent - Application event.public RequestEventListener onRequest(RequestEvent requestEvent)
ApplicationEventListenerrequest event listener if
listening to request events is required. The method is called once for
each new incoming request. If listening to the request is required then request event must be returned
from the method. Such a request event listener will receive all request events that one request. If listening
to request event for the request is not required then null must be returned
from the method (do not return empty mock listener in these
cases as it will have negative performance impact).
onRequest in interface ApplicationEventListenerrequestEvent - Event of type RequestEvent.Type.START.
requestEvent; null otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||