当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Interface ServletContextAttributeListener - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.servlet
Interface ServletContextAttributeListener
- All Superinterfaces:
- java.util.EventListener
- public interface ServletContextAttributeListener
- extends java.util.EventListener
Implementations of this interface recieve notifications of
changes to the attribute list on the servlet context of a web application.
To recieve notification events, the implementation class
must be configured in the deployment descriptor for the web application.
- Since:
- v 2.3
- See Also:
ServletContextAttributeEvent
attributeAdded
public void attributeAdded(ServletContextAttributeEvent scab)
- Notification that a new attribute was added to the servlet context. Called after the attribute is added.
attributeRemoved
public void attributeRemoved(ServletContextAttributeEvent scab)
- Notification that an existing attribute has been remved from the servlet context. Called after the attribute is removed.
attributeReplaced
public void attributeReplaced(ServletContextAttributeEvent scab)
- Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.