zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.shlanbao.tzsc.base.listener;
 
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
 
/**
 * OGNL监听
 * <li>@author Leejean
 * <li>@create 2014-7-7上午10:20:04
 */
public class OgnlSecurityListener implements ServletContextListener, HttpSessionListener, HttpSessionAttributeListener {
 
    public void attributeAdded(HttpSessionBindingEvent httpSessionBindingEvent) {
 
    }
 
    public void attributeRemoved(HttpSessionBindingEvent httpSessionBindingEvent) {
 
    }
 
    public void attributeReplaced(HttpSessionBindingEvent httpSessionBindingEvent) {
 
    }
 
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
 
    }
 
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
 
    }
 
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
 
    }
 
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        //OgnlRuntime.setSecurityManager(null);
    }
 
}