NAME

Servlet::ServletContextAttributeListener - context attribute listener interface

SYNOPSIS

$listener->attributeAdded($event);

$listener->attributeReplaced($event)

$listener->attributeRemoved($event)

DESCRIPTION

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.

METHODS

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

SEE ALSO

Servlet::ServletContext, Servlet::ContextAttributeEvent

AUTHOR

Brian Moseley, bcm@maz.org