org.modeshape.web.jcr
Class ModeShapeJcrDeployer
java.lang.Object
org.modeshape.web.jcr.ModeShapeJcrDeployer
- All Implemented Interfaces:
- EventListener, ServletContextListener
@NotThreadSafe
public class ModeShapeJcrDeployer
- extends Object
- implements ServletContextListener
Servlet context listener that is responsible for initializing the repository factory.
This class is not thread safe, but in practice this does not matter as the servlet container must ensure that only a single
instance of this exists per web context and that it is only called in a single-threaded manner.
- See Also:
RepositoryFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModeShapeJcrDeployer
public ModeShapeJcrDeployer()
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
- Alerts the repository factory that the web application is shutting down
- Specified by:
contextDestroyed in interface ServletContextListener
- Parameters:
event - the servlet context event- See Also:
RepositoryFactory.shutdown(),
RepositoryProvider.shutdown()
contextInitialized
public void contextInitialized(ServletContextEvent event)
- Initializes the repository factory
- Specified by:
contextInitialized in interface ServletContextListener
- Parameters:
event - the servlet context event- See Also:
RepositoryFactory.initialize(javax.servlet.ServletContext)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.