|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.web.ServiceRegistryShutdownListener
public class ServiceRegistryShutdownListener
Simple ServletContextListener implementation to shut down
a specific toolbox.services.ServiceRegistty instance when
the servlet context is unloaded.
This implementation requires the existence of a single context init parameter named toolbox.services.ServiceRegistry.name that contains the name of the registry that must be destroyed.
| Constructor Summary | |
|---|---|
ServiceRegistryShutdownListener()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
Receives notification that the web application is being shut down. |
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
Receives notification that the web application is initialising. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceRegistryShutdownListener()
| Method Detail |
|---|
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenersce - ServiceContextEvent instance.public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenersce - ServiceContextEvent instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||