javax.servlet.annotation

## Annotation Type WebListener

-     @Target(value=TYPE)
      @Retention(value=RUNTIME)
      @Documented
      public @interface WebListener

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

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `value` Description of the listener

- - ### Element Detail

    - #### value

          public abstract String value

      Description of the listener
      Default:
        ""

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.