|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IManaged
Classes which implement this interface receive a notification before their container terminates. This usually happens when the ContextLoaderListener.contextDestroyed(javax.servlet.ServletContextEvent) is called or right before the VM terminates.
Method Summary | |
---|---|
java.lang.Object |
init(java.lang.Object callable)
Initialize a library. |
void |
onShutdown(java.lang.Object closeable)
Register a shutdown hook for the library. |
Method Detail |
---|
java.lang.Object init(java.lang.Object callable) throws java.lang.Exception
callable
- Its call() method will be called synchronized.
java.lang.Exception
- The result of the call() invocation.void onShutdown(java.lang.Object closeable)
closeable
- Its close() method will be called before the context or the VM terminates.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |