org.nakedobjects.webapp
Class NakedObjectsWebAppBootstrapper
java.lang.Object
org.nakedobjects.webapp.NakedObjectsWebAppBootstrapper
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class NakedObjectsWebAppBootstrapper
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
Initialize the NakedObjectsSystem when the web application starts, and destroys it when it ends.
Implementation note: we use a number of helper builders to keep this class as small and focused as
possible. The builders are available for reuse by other bootstrappers.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NakedObjectsWebAppBootstrapper
public NakedObjectsWebAppBootstrapper()
getSystemBoundTo
public static NakedObjectsSystem getSystemBoundTo(javax.servlet.ServletContext servletContext)
- Convenience for servlets that need to obtain the
NakedObjectsSystem.
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent ev)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.