JSF-Spring

de.mindmatters.faces.spring.context
Class ContextLoaderListener

java.lang.Object
  extended by de.mindmatters.faces.spring.context.ContextLoaderListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class ContextLoaderListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Bootstrap listener to start up JSF-Spring's root WebApplicationContext. Simply delegates to ContextLoader.

For further informtion please have a look at the documentation of ContextLoaderListener.

Author:
Andreas Kuhrwahl

Constructor Summary
ContextLoaderListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Closes the jsf-spring-config root web application context.
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Initializes the jsf-spring-config root web application context.
protected  ContextLoader createContextLoader()
          Creates the ConfigLoader to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextLoaderListener

public ContextLoaderListener()
Method Detail

createContextLoader

protected ContextLoader createContextLoader()
Creates the ConfigLoader to use. Can be overridden in subclasses.

Returns:
the new ConfigLoader

contextInitialized

public final void contextInitialized(javax.servlet.ServletContextEvent event)
Initializes the jsf-spring-config root web application context.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
event - the ServletContextEvent
See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)

contextDestroyed

public final void contextDestroyed(javax.servlet.ServletContextEvent event)
Closes the jsf-spring-config root web application context.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
event - the ServletContextEvent
See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG