|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.common.lib.factory.BaseAdsServiceClientFactory<C,S,D>
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>
Base factory which creates service clients.
| Constructor Summary | |
|---|---|
protected |
BaseAdsServiceClientFactory(com.google.inject.AbstractModule module)
Constructor. |
protected |
BaseAdsServiceClientFactory(AdsServiceClientFactory<C,S,D> adsServiceClientFactory)
Constructor. |
protected |
BaseAdsServiceClientFactory(com.google.inject.Injector injector)
Constructor. |
| Method Summary | ||
|---|---|---|
|
getServiceClientAsInterface(S adsSession,
Class<T> interfaceClass)
Gets a client given a session and the class of the desired stub interface. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 injection| Method Detail |
|---|
public <T> T getServiceClientAsInterface(S adsSession,
Class<T> interfaceClass)
throws ServiceException
adsSession - the session associated with the desired
clientinterfaceClass - the class type of the desired client
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||