com.sun.jersey.guice
Class JerseyServletModule
java.lang.Object
com.google.inject.AbstractModule
com.google.inject.servlet.ServletModule
com.sun.jersey.guice.JerseyServletModule
- All Implemented Interfaces:
- Module
public class JerseyServletModule
- extends ServletModule
A ServletModule
module that provides JAX-RS and Jersey related
bindings.
The module has a dependency on GuiceContainer
, which is required
to be served in the ServletModule.configure()
method.
The following bindings are defined:
- Author:
- [email protected]
Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JerseyServletModule
public JerseyServletModule()
webApp
@Provides
public WebApplication webApp(GuiceContainer guiceContainer)
providers
@Provides
public Providers providers(WebApplication webApplication)
fearturesAndProperties
@Provides
public FeaturesAndProperties fearturesAndProperties(WebApplication webApplication)
messageBodyWorkers
@Provides
public MessageBodyWorkers messageBodyWorkers(WebApplication webApplication)
exceptionMapperContext
@Provides
public ExceptionMapperContext exceptionMapperContext(WebApplication webApplication)
httpContext
@Provides
public HttpContext httpContext(WebApplication webApplication)
uriInfo
@Provides
public UriInfo uriInfo(WebApplication wa)
extendedUriInfo
@Provides
public ExtendedUriInfo extendedUriInfo(WebApplication wa)
requestContext
@Provides
public HttpRequestContext requestContext(WebApplication wa)
httpHeaders
@Provides
public HttpHeaders httpHeaders(WebApplication wa)
request
@Provides
public Request request(WebApplication wa)
securityContext
@Provides
public SecurityContext securityContext(WebApplication wa)
responseContext
@Provides
public HttpResponseContext responseContext(WebApplication wa)
Copyright © 2012 Oracle Corporation. All Rights Reserved.