Name

ServletContextAttributeEvent

Synopsis

This class is an event notification passed to a ServletContextAttribueListener. The getName() and getValue() methods return the name and value of the changed attribute. The getValue() method returns the old value of the attribute for replacements and deletions.

                  Returned By
public class ServletContextAttributeEvent extends ServletContextEvent {
// Public Constructors
   public ServletContextAttributeEvent(ServletContext source, 
        String name, Object value);  
// Public Instance Methods
   public String getName();  
   public Object getValue();  
}

Passed To

ServletContextAttributeListener.{attributeAdded(), attributeRemoved(), attributeReplaced()}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.