public class ModeShapeJcrDeployer extends Object implements ServletContextListener
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.
This class is not thread-safe.
RepositoryManager
Constructor and Description |
---|
ModeShapeJcrDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent event)
Alerts the repository factory that the web application is shutting down
|
void |
contextInitialized(ServletContextEvent event)
Initializes the repository factory
|
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
event
- the servlet context eventRepositoryManager.shutdown()
public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
event
- the servlet context eventRepositoryManager.initialize(javax.servlet.ServletContext)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.