Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.directwebremoting.guice
Class DwrGuiceServlet

    java.lang.Object
      javax.servlet.GenericServlet
          javax.servlet.http.HttpServlet
              org.directwebremoting.servlet.DwrServlet
                  org.directwebremoting.guice.DwrGuiceServlet

All Implemented Interfaces:
  java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class DwrGuiceServlet

extends DwrServlet

An extension of the basic `DwrServlet` that configures itself for dependency injection with Guice. Must be used in conjunction with `DwrGuiceServletContextFilter`.

Author:
  Tim Peierls [tim at peierls dot net]
See Also:
  Serialized Form

Constructor Summary
`DwrGuiceServlet()`

Method Summary
`void` | `destroy()` Closes any `Closeable` application-scoped objects.
`void` | `init(javax.servlet.ServletConfig servletConfig)` Copies DWR configuration values from the Guice bindings into `servletConfig` to make these values accessible to the standard DWR servlet configuration machinery.

Methods inherited from class org.directwebremoting.servlet.DwrServlet
`getContainer, shutdown`

Methods inherited from class javax.servlet.http.HttpServlet
`service`

Methods inherited from class javax.servlet.GenericServlet
`getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DwrGuiceServlet

    public DwrGuiceServlet()

Method Detail

### init

    public void init(javax.servlet.ServletConfig servletConfig)
              throws javax.servlet.ServletException

  Copies DWR configuration values from the Guice bindings into `servletConfig` to make these values accessible to the standard DWR servlet configuration machinery.

  Specified by:
    `init` in interface `javax.servlet.Servlet`
  Overrides:
    `init` in class `DwrServlet`
  Throws:
    `javax.servlet.ServletException`

### destroy

    public void destroy()

  Closes any `Closeable` application-scoped objects. IO exceptions are collected but ignored.

  Specified by:
    `destroy` in interface `javax.servlet.Servlet`
  Overrides:
    `destroy` in class `DwrServlet`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Copyright ¬ 2005
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD