Servlet::ServletContextAttributeListener - context attribute listener interface
$listener->attributeAdded($event);
$listener->attributeReplaced($event)
$listener->attributeRemoved($event)
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.
For each of the following methods, the event passed to the method is of type
Servlet::ServletContextAttributeEvent.
- attributeAdded($event)
- Notification that a new attribute was added to the servlet context. Called
after the attribute is added.
Parameters:
- $event
- an instance of Servlet::ContextAttributeEvent
- attributeRemoved($event)
- Notification that an existing attribute was removed from the servlet
context. Called after the attribute is removed.
Parameters:
- $event
- an instance of Servlet::ContextAttributeEvent
- attributeReplaceded($event)
- Notification that an existing attribute on servlet context was replaced.
Called after the attribute is replaced.
Parameters:
- $event
- an instance of Servlet::ContextAttributeEvent
Servlet::ServletContext, Servlet::ContextAttributeEvent
Brian Moseley, bcm@maz.org