com.google.inject.servlet
Class ServletModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.inject.servlet.ServletModule
All Implemented Interfaces:
Module

public class ServletModule
extends AbstractModule

Configures the servlet scopes and creates bindings for the servlet API objects so you can inject the request, response, session, etc.

Author:
crazybob@google.com (Bob Lee)

Field Summary
static java.lang.String REQUEST_PARAMETERS
          Name of the request parameters binding.
 
Constructor Summary
ServletModule()
           
 
Method Summary
protected  void configure()
          Configures a ContainerBuilder via the exposed methods.
 
Methods inherited from class com.google.inject.AbstractModule
bind, bind, bind, bind, bindProperties, bindProperties, builder, configure, install, link, requestStaticInjection, scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_PARAMETERS

public static final java.lang.String REQUEST_PARAMETERS
Name of the request parameters binding. The type is Map<String, String[]>.

See Also:
Constant Field Values
Constructor Detail

ServletModule

public ServletModule()
Method Detail

configure

protected void configure()
Description copied from class: AbstractModule
Configures a ContainerBuilder via the exposed methods.

Specified by:
configure in class AbstractModule