Java-ServletContextEvent-ServletContextAttributeEvent
来源:互联网 发布:淘宝固定背代码 编辑:程序博客网 时间:2024/06/06 04:25
//这是一个事件类用来通知一个web 应用的servlet 上下文的改变public class ServletContextEvent extends java.util.EventObject { /** Construct a ServletContextEvent from the given context. * * @param source - the ServletContext that is sending the event. */ public ServletContextEvent(ServletContext source) {super(source); } /** * Return the ServletContext that changed. * * @return the ServletContext that sent the event. */ public ServletContext getServletContext () { return (ServletContext) super.getSource(); } }
public class ServletContextAttributeEvent extends ServletContextEvent { private String name;private Object value;/** Construct a ServletContextAttributeEvent from the given context for the** given attribute name and attribute value. *///构造一个servlet上下文属性事件public ServletContextAttributeEvent(ServletContext source, String name, Object value) { super(source); this.name = name; this.value = value;}/*** Return the name of the attribute that changed on the ServletContext.**/public String getName() {return this.name;}/*** Returns the value of the attribute that has been added, removed, or replaced.* If the attribute was added, this is the value of the attribute. If the attribute was* removed, this is the value of the removed attribute. If the attribute was replaced, this* is the old value of the attribute.**/public Object getValue() { return this.value; }}
0 0
- Java-ServletContextEvent-ServletContextAttributeEvent
- javax.servlet.ServletContextAttributeEvent翻译
- javax.servlet.ServletContextEvent翻译
- 通过ServletContextEvent加载spring的application.xml
- Servlet/ServletContextListener/ServletContextEvent 说明及使用
- java
- JAVA
- JAVA
- JAVA
- java
- Java
- Java
- JAVA:
- java
- java
- java
- java
- Java
- leetcode Convert Sorted List to Binary Search Tree
- 多项式求导
- TextWatcher:监听编辑框EditText中内容的改变
- struts2值栈学习
- 一字棋游戏(C++实现)
- Java-ServletContextEvent-ServletContextAttributeEvent
- freemarker 在ftl页面通过#list 获取后台存入map值并放去select的option中
- BufferedReader读取文件
- AVL树
- rewind和fseek
- [WEB参数加密与WAF的矛盾] 以WEB应用本身的参数加密编写sqlmap的tamper并绕过WAF
- My coding way (7)
- 通过Intent传递对象,已Map为例
- 视频