Servlet::ServletContextAttributeEvent - servlet context attribute event class
my $event = Servlet::ServletContextAttributeEvent->new($context, $name, $value); my $name = $event->getName(); my $object = $event->getValue(); my $context = $event->getServletContext(); # or my $context = $event->getSource();
This is an event class for notifications about changes to the attributes of the servlet context of a web application.
Construct an instance for the given context, attribute name and attribute value.
Parameters:
the servlet context that is the source of the event
the name of the affected servlet context attribute
the value of the affected servlet context attribute
Returns the name of the affected servlet context attribute.
Returns the Servlet::ServletContext object that is the source of the event.
Returns the value of the affected servlet context attribute. If the attribute was added, this is the value of the attribute. If the attribute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.
Servlet::ServletContext, Servlet::ServletContextAttributeListener
Brian Moseley, bcm@maz.org
To install Servlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Servlet
CPAN shell
perl -MCPAN -e shell install Servlet
For more information on module installation, please visit the detailed CPAN module installation guide.