org.jboss.dna.web.jcr.rest
Class DnaJcrDeployer
java.lang.Object
org.jboss.dna.web.jcr.rest.DnaJcrDeployer
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
@NotThreadSafe
public class DnaJcrDeployer
- extends Object
- implements javax.servlet.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
|
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Alerts the repository factory that the web application is shutting down |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Initializes the repository factory |
DnaJcrDeployer
public DnaJcrDeployer()
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Alerts the repository factory that the web application is shutting down
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
- See Also:
RepositoryFactory.shutdown(),
RepositoryProvider.shutdown()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Initializes the repository factory
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
- See Also:
RepositoryFactory.initialize(javax.servlet.ServletContext)
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.