|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.interceptor.MultiDispatcher
public class MultiDispatcher
This dispatcher allows to register multiple interceptors for a given event.
| Constructor Summary | |
|---|---|
MultiDispatcher()
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(java.lang.Class event,
Interceptor it)
Adds an interceptor for the given event type. |
void |
dispatch(Event event)
Dispatches the given event to all interceptors that have registered for the event's class. |
protected void |
handleError(java.lang.Throwable t)
Template method that is called internally when an error is trapped when invoking the call-back method on a given interceptor instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiDispatcher()
| Method Detail |
|---|
public void addInterceptor(java.lang.Class event,
Interceptor it)
throws InvalidInterceptorException
event - an event class.it - an Interceptor instance.
InvalidInterceptorException - if the interceptor could not be added.public void dispatch(Event event)
protected void handleError(java.lang.Throwable t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||