com.atlassian.spring.container
Class ContainerContextLoaderListener
java.lang.Object
org.springframework.web.context.ContextLoaderListener
com.atlassian.spring.container.ContainerContextLoaderListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class ContainerContextLoaderListener
- extends org.springframework.web.context.ContextLoaderListener
- Author:
- Ross Mason
The confluence context listener will obtain a reference to the spring application context to use
for resolving components. This listener extends the Spring ContextLoaderListener and should be used instead of
in the web.xml.
The loader now fires an event once the ContainerManager has been setup with a context.
- See Also:
ContainerContextLoadedEvent
Methods inherited from class org.springframework.web.context.ContextLoaderListener |
contextDestroyed, createContextLoader, getContextLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerContextLoaderListener
public ContainerContextLoaderListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
- Overrides:
contextInitialized
in class org.springframework.web.context.ContextLoaderListener
postInitialiseContext
protected void postInitialiseContext(javax.servlet.ServletContextEvent event)
getNewSpringContainerContext
protected SpringContainerContext getNewSpringContainerContext()
canInitialiseContainer
public boolean canInitialiseContainer()
- Overriding classes can apply contidional behaviour here
- Returns: