C
- the subclass of AdsServiceClient
D
- the subclass of AdsServiceDescriptor
S
- the subclass of AdsSession
H
- the subclass of AdsServiceClientFactoryHelper
F
- the subclass of BaseAdsServiceClientFactory
public class FactoryModule<C extends AdsServiceClient<S,D>,D extends AdsServiceDescriptor,S extends AdsSession,H extends AdsServiceClientFactoryHelper<C,S,D>,F extends BaseAdsServiceClientFactory<C,S,D>>
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static interface |
FactoryModule.AdsServiceClientFactoryInterface<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor>
Factory interface class to create
AdsServiceClient . |
static interface |
FactoryModule.AdsServiceDescriptorFactoryInterface<D extends AdsServiceDescriptor>
Factory interface class to create
AdsServiceDescriptor . |
Constructor and Description |
---|
FactoryModule(com.google.inject.TypeLiteral<FactoryModule.AdsServiceClientFactoryInterface<C,S,D>> adsServiceClientFactoryTypeLiteral,
com.google.inject.TypeLiteral<FactoryModule.AdsServiceDescriptorFactoryInterface<D>> adsServiceDescriptorFactoryTypeLiteral,
com.google.inject.TypeLiteral<C> adsServiceClientTypeLiteral,
com.google.inject.TypeLiteral<D> adsServiceDescriptorTypeLiteral,
Class<H> adsServiceClientFactoryHelperClass,
Class<F> baseAdsServiceClientFactoryClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public FactoryModule(com.google.inject.TypeLiteral<FactoryModule.AdsServiceClientFactoryInterface<C,S,D>> adsServiceClientFactoryTypeLiteral, com.google.inject.TypeLiteral<FactoryModule.AdsServiceDescriptorFactoryInterface<D>> adsServiceDescriptorFactoryTypeLiteral, com.google.inject.TypeLiteral<C> adsServiceClientTypeLiteral, com.google.inject.TypeLiteral<D> adsServiceDescriptorTypeLiteral, Class<H> adsServiceClientFactoryHelperClass, Class<F> baseAdsServiceClientFactoryClass)
adsServiceClientFactoryTypeLiteral
- the factory type literal which
contains a FactoryModule.AdsServiceClientFactoryInterface
adsServiceDescriptorFactoryTypeLiteral
- the factory type literal
which contains a FactoryModule.AdsServiceDescriptorFactoryInterface
adsServiceClientTypeLiteral
- the ads service client literal which
contains a AdsServiceClient
adsServiceDescriptorTypeLiteral
- the ads service descriptor literal
which contains a AdsServiceDescriptor
adsServiceClientFactoryHelperClass
- the AdsServiceClientFactoryHelper
classbaseAdsServiceClientFactoryClass
- the BaseAdsServiceClientFactory
classCopyright © 2018. All Rights Reserved.