C - the type of AdsServiceClientS - the type of AdsSessionD - the type of AdsServiceDescriptorpublic abstract class BaseAdsServiceClientFactory<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAdsServiceClientFactory(com.google.inject.AbstractModule module)
Constructor.
|
protected |
BaseAdsServiceClientFactory(AdsServiceClientFactory<C,S,D> adsServiceClientFactory)
Constructor.
|
protected |
BaseAdsServiceClientFactory(com.google.inject.Injector injector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getServiceClientAsInterface(S adsSession,
Class<T> interfaceClass)
Gets a client given a session and the class of the desired stub interface.
|
protected BaseAdsServiceClientFactory(AdsServiceClientFactory<C,S,D> adsServiceClientFactory)
adsServiceClientFactory - the ads service client factoryprotected BaseAdsServiceClientFactory(com.google.inject.AbstractModule module)
module - the module used for injectionprotected BaseAdsServiceClientFactory(com.google.inject.Injector injector)
injector - the injector used for injectionpublic <T> T getServiceClientAsInterface(S adsSession, Class<T> interfaceClass) throws ServiceException
adsSession - the session associated with the desired
clientinterfaceClass - the class type of the desired clientServiceExceptionCopyright © 2015. All Rights Reserved.