The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Servlet::ServletContextListener - context listener interface

SYNOPSIS

  $listener->contextInitialized($event)

  $listener->contextDestroyed($event);

DESCRIPTION

Implementations of this interface receive notifications about changes to the servlet context of the web application they are a part of. 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::ServletContextEvent.

contextDestroyed($event)

Notification that the servlet context is about to be shut down.

Parameters:

$event

an instance of Servlet::ContextEvent

contextInitialized($event)

Notification that the web application is ready to process requests.

Parameters:

$event

an instance of Servlet::ContextEvent

SEE ALSO

Servlet::ServletContext, Servlet::ContextEvent

AUTHOR

Brian Moseley, bcm@maz.org