Class RestApiModule
- java.lang.Object
- 
- com.google.inject.AbstractModule
- 
- com.google.gerrit.extensions.config.FactoryModule
- 
- com.google.gerrit.extensions.restapi.RestApiModule
 
 
 
- 
- All Implemented Interfaces:
- com.google.inject.Module
 - Direct Known Subclasses:
- DropWizardMetricMaker.ApiModule,- DropWizardMetricMaker.RestModule,- Module,- Module,- Module,- Module,- Module,- Module,- PluginRestApiModule,- RestCacheAdminModule
 
 public abstract class RestApiModule extends FactoryModule Guice DSL for bindingRestViewimplementations.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRestApiModule.ChildCollectionBinder<P extends RestResource>static classRestApiModule.ModifyViewBinder<P extends RestResource>static classRestApiModule.ReadViewBinder<P extends RestResource>
 - 
Constructor SummaryConstructors Constructor Description RestApiModule()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <P extends RestResource>
 RestApiModule.ChildCollectionBinder<P>child(com.google.inject.TypeLiteral<RestView<P>> type, String name)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>delete(com.google.inject.TypeLiteral<RestView<R>> viewType)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>delete(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)protected <R extends RestResource>
 RestApiModule.ReadViewBinder<R>get(com.google.inject.TypeLiteral<RestView<R>> viewType)protected <R extends RestResource>
 RestApiModule.ReadViewBinder<R>get(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>post(com.google.inject.TypeLiteral<RestView<R>> viewType)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>post(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>put(com.google.inject.TypeLiteral<RestView<R>> viewType)protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>put(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)protected <R extends RestResource>
 com.google.inject.binder.LinkedBindingBuilder<RestView<R>>view(com.google.inject.TypeLiteral<RestView<R>> viewType, String method, String name)- 
Methods inherited from class com.google.gerrit.extensions.config.FactoryModulefactory
 - 
Methods inherited from class com.google.inject.AbstractModuleaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
- 
 
- 
- 
- 
Field Detail- 
GETprotected static final String GET - See Also:
- Constant Field Values
 
 - 
PUTprotected static final String PUT - See Also:
- Constant Field Values
 
 - 
DELETEprotected static final String DELETE - See Also:
- Constant Field Values
 
 - 
POSTprotected static final String POST - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getprotected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType) 
 - 
putprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType) 
 - 
postprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType) 
 - 
deleteprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType) 
 - 
getprotected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
 - 
putprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
 - 
postprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
 - 
deleteprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
 - 
childprotected <P extends RestResource> RestApiModule.ChildCollectionBinder<P> child(com.google.inject.TypeLiteral<RestView<P>> type, String name) 
 - 
viewprotected <R extends RestResource> com.google.inject.binder.LinkedBindingBuilder<RestView<R>> view(com.google.inject.TypeLiteral<RestView<R>> viewType, String method, String name) 
 
- 
 
-