01: package com.opensymphony.webwork.lifecycle;
02:
03: import javax.servlet.http.HttpSessionEvent;
04: import javax.servlet.http.HttpSessionListener;
05:
06: /**
07: * The default mechanism for initializing the session and application scopes for XWork's IoC
08: * container. If for any reason you don't wish to use session-scoped objects, you can include
09: * just the {@link ApplicationLifecycleListener} rather than this class, but generally this
10: * class will be fine for almost all needs.
11: *
12: * @author Patrick Lightbody
13: * @see ApplicationLifecycleListener
14: * @see SessionLifecycleListener
15: * @see com.opensymphony.webwork.dispatcher.FilterDispatcher
16: * @since 2.2
17: * @deprecated XWork IoC has been deprecated in favor of Spring.
18: * Please refer to the Spring-WebWork integration documentation for more info.
19: */
20: public class LifecycleListener extends ApplicationLifecycleListener
21: implements HttpSessionListener {
22: SessionLifecycleListener session = new SessionLifecycleListener();
23:
24: public void sessionCreated(HttpSessionEvent httpSessionEvent) {
25: session.sessionCreated(httpSessionEvent);
26: }
27:
28: public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
29: session.sessionDestroyed(httpSessionEvent);
30: }
31: }
|