|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.teamdev.xpcom.DefaultAsyncHandler
public class DefaultAsyncHandler
Very basic implementation of both AsyncHandlerFactory and AsyncHandler. Uses self as handler, re-throwing exception.
Constructor Summary | |
---|---|
DefaultAsyncHandler()
|
Method Summary | |
---|---|
void |
after(java.lang.Throwable t)
Re-throws exception if it is not null, no-op otherwise. |
void |
before()
No-op. |
AsyncHandler |
createHandler()
Returns self to be used as a handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAsyncHandler()
Method Detail |
---|
public void before()
before
in interface AsyncHandler
public void after(java.lang.Throwable t)
after
in interface AsyncHandler
t
- an exception that was thrown during asynchronous method
execution, or null if execution completed successfully. This
exception will not be re-thrown by the outside code.public AsyncHandler createHandler()
createHandler
in interface AsyncHandlerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |