|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.interceptor.SingleDispatcher
public class SingleDispatcher
This dispatcher allows to register only one interceptor per event type.
| Constructor Summary | |
|---|---|
SingleDispatcher()
|
|
| Method Summary | |
|---|---|
void |
dispatch(Event event)
Dispatches the given event to the interceptor that has 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. |
void |
registerInterceptor(java.lang.Class event,
Interceptor it)
Registers an interceptor with the given event type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleDispatcher()
| Method Detail |
|---|
public void registerInterceptor(java.lang.Class event,
Interceptor it)
throws InvalidInterceptorException
event - an event class.it - an Interceptor instance.
InvalidInterceptorException - if the interceptor could not be registered.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 | |||||||||