Top Description Methods
jakarta.servlet

public Interface ServletContextAttributeListener

extends EventListener
Imports
java.util.EventListener

Implementations of this interface receive notifications of changes to the attribute list on the servlet context of a web application. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.
Since
Servlet 2.3
See Also
ServletContextAttributeEvent

Method Summary

Modifier and TypeMethod and Description
public default void
attributeAdded(ServletContextAttributeEvent
Information about the new attribute
scae
)

Notification that a new attribute was added to the servlet context.

public default void
attributeRemoved(ServletContextAttributeEvent
Information about the removed attribute
scae
)

Notification that an existing attribute has been removed from the servlet context.

public default void
attributeReplaced(ServletContextAttributeEvent
Information about the replaced attribute
scae
)

Notification that an attribute on the servlet context has been replaced.

Method Detail

attributeAddedback to summary
public default void attributeAdded(ServletContextAttributeEvent scae)

Notification that a new attribute was added to the servlet context. Called after the attribute is added. The default implementation is a NO-OP.

Parameters
scae:ServletContextAttributeEvent

Information about the new attribute

attributeRemovedback to summary
public default void attributeRemoved(ServletContextAttributeEvent scae)

Notification that an existing attribute has been removed from the servlet context. Called after the attribute is removed. The default implementation is a NO-OP.

Parameters
scae:ServletContextAttributeEvent

Information about the removed attribute

attributeReplacedback to summary
public default void attributeReplaced(ServletContextAttributeEvent scae)

Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced. The default implementation is a NO-OP.

Parameters
scae:ServletContextAttributeEvent

Information about the replaced attribute