org.directwebremoting.guice
Class DwrGuiceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.directwebremoting.servlet.DwrServlet
              extended by 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 DwrGuiceServletContextListener.

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
doGet, doPost, getContainer
 
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

Copyright 2008