com.opensymphony.webwork.spring.lifecycle
Class ApplicationContextSessionListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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"
ApplicationContextSessionListener
public ApplicationContextSessionListener()
sessionCreated
public void sessionCreated(HttpSessionEvent httpSessionEvent)
- Specified by:
sessionCreated in interface HttpSessionListener
sessionDestroyed
public void sessionDestroyed(HttpSessionEvent httpSessionEvent)
- Specified by:
sessionDestroyed in interface HttpSessionListener
|