com.opensymphony.webwork.spring.lifecycle
Class ApplicationContextSessionListener

java.lang.Object
  extended by com.opensymphony.webwork.spring.lifecycle.ApplicationContextSessionListener
All Implemented Interfaces:
Serializable, EventListener, HttpSessionListener

public class ApplicationContextSessionListener
extends Object
implements HttpSessionListener, Serializable

Used to set up a Spring ApplicationContext in the HttpSession. It can be configured similarly to the

Author:
Jason Carreira
See Also:
Serialized Form

Field Summary
static String APP_CONTEXT_SESSION_KEY
          Key to map the session-scoped application context into the session attributes.
static String[] DEFAULT_SESSION_CONFIG
          The default session context configuration string:"classpath:session.xml"
static Class DEFAULT_SESSION_CONTEXT_CLASS
          Default context class for ContextLoader.
static String SESSION_CONFIG_LOCATION_PARAM
          Name of servlet context parameter that can specify the config location for the root context, falling back to the implementation's default otherwise.
static String SESSION_CONTEXT_CLASS_PARAM
          Config param for the root WebApplicationContext implementation class to use: "sessionContextClass"
 
Constructor Summary
ApplicationContextSessionListener()
           
 
Method Summary
 void sessionCreated(HttpSessionEvent httpSessionEvent)
           
 void sessionDestroyed(HttpSessionEvent httpSessionEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_CONTEXT_CLASS_PARAM

public static final String SESSION_CONTEXT_CLASS_PARAM
Config param for the root WebApplicationContext implementation class to use: "sessionContextClass"

See Also:
Constant Field Values

DEFAULT_SESSION_CONTEXT_CLASS

public static final Class DEFAULT_SESSION_CONTEXT_CLASS
Default context class for ContextLoader.

See Also:
XmlWebApplicationContext

SESSION_CONFIG_LOCATION_PARAM

public static final String SESSION_CONFIG_LOCATION_PARAM
Name of servlet context parameter that can specify the config location for the root context, falling back to the implementation's default otherwise.

See Also:
XmlWebApplicationContext.DEFAULT_CONFIG_LOCATION, Constant Field Values

APP_CONTEXT_SESSION_KEY

public static final String APP_CONTEXT_SESSION_KEY
Key to map the session-scoped application context into the session attributes.

See Also:
Constant Field Values

DEFAULT_SESSION_CONFIG

public static final String[] DEFAULT_SESSION_CONFIG
The default session context configuration string:"classpath:session.xml"

Constructor Detail

ApplicationContextSessionListener

public ApplicationContextSessionListener()
Method Detail

sessionCreated

public void sessionCreated(HttpSessionEvent httpSessionEvent)
Specified by:
sessionCreated in interface HttpSessionListener

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent httpSessionEvent)
Specified by:
sessionDestroyed in interface HttpSessionListener

WebWork Project Page