com.atlassian.spring.container
Class ContainerContextLoaderListener

java.lang.Object
  extended by org.springframework.web.context.ContextLoaderListener
      extended by 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

Constructor Summary
ContainerContextLoaderListener()
           
 
Method Summary
 boolean canInitialiseContainer()
          Overriding classes can apply contidional behaviour here
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
protected  SpringContainerContext getNewSpringContainerContext()
           
protected  void postInitialiseContext(javax.servlet.ServletContextEvent event)
           
 
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
 

Constructor Detail

ContainerContextLoaderListener

public ContainerContextLoaderListener()
Method Detail

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:


Atlassian Spring is developed by Atlassian Software Systems.