1. package javax.servlet;
  2. import java.util.EventListener;
  3. /** Implementations of this interface recieve notifications of
  4. ** changes to the attribute list on the servlet context of a web application.
  5. * To recieve notification events, the implementation class
  6. * must be configured in the deployment descriptor for the web application.
  7. * @see ServletContextAttributeEvent
  8. * @since v 2.3
  9. */
  10. public interface ServletContextAttributeListener extends EventListener {
  11. /** Notification that a new attribute was added to the servlet context. Called after the attribute is added.*/
  12. public void attributeAdded(ServletContextAttributeEvent scab);
  13. /** Notification that an existing attribute has been remved from the servlet context. Called after the attribute is removed.*/
  14. public void attributeRemoved(ServletContextAttributeEvent scab);
  15. /** Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced. */
  16. public void attributeReplaced(ServletContextAttributeEvent scab);
  17. }