org.qi4j.library.http

## Class Servlets.ContextListenerDeclaration

- java.lang.Object
- - org.qi4j.library.http.Servlets.ContextListenerDeclaration

- Enclosing class:
    Servlets

      public static class Servlets.ContextListenerDeclaration
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Servlets.ContextListenerDeclaration()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends ServiceComposite>` | `contextListener()`
    `<T extends javax.servlet.ServletContextListener & ServiceComposite> Servlets.ContextListenerDeclaration` | `with(Class<T> contextListener)`
    `Servlets.ContextListenerDeclaration` | `withInitParams(Map<String,String> initParams)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Servlets.ContextListenerDeclaration

          public Servlets.ContextListenerDeclaration()

  - ### Method Detail

    - #### with

          public <T extends javax.servlet.ServletContextListener & ServiceComposite> Servlets.ContextListenerDeclaration with(Class<T> contextListener)

    - #### contextListener

          public Class<? extends ServiceComposite> contextListener()

    - #### withInitParams

          public Servlets.ContextListenerDeclaration withInitParams(Map<String,String> initParams)