Top Description Methods
javax.servlet.annotation

public @Interface WebListener

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Documented
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

This annotation is used to declare a WebListener. Any class annotated with WebListener must implement one or more of the javax.servlet.ServletContextListener, javax.servlet.ServletContextAttributeListener, javax.servlet.ServletRequestListener, javax.servlet.ServletRequestAttributeListener, javax.servlet.http.HttpSessionListener, or javax.servlet.http.HttpSessionAttributeListener, or javax.servlet.http.HttpSessionIdListener interfaces.
Since
Servlet 3.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

description of the listener
value
()

Description of the listener

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Description of the listener

Returns:String

description of the listener