|
||||||||||
| 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.AdsServiceClientFactory<C,S,D>
C - the type of AdsServiceClientS - the type of AdsSessionD - the type of AdsServiceDescriptorpublic class AdsServiceClientFactory<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor>
Factory which creates ads service clients.
| Constructor Summary | |
|---|---|
AdsServiceClientFactory(AdsServiceClientFactoryHelper adsServiceClientFactoryHelper)
Constructor. |
|
| Method Summary | ||
|---|---|---|
protected
|
createServiceClientProxy(D adsServiceDescriptor,
C adsServiceClient)
Creates a proxy around the given AdsServiceClient. |
|
|
getServiceClient(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 |
|---|
@Inject public AdsServiceClientFactory(AdsServiceClientFactoryHelper adsServiceClientFactoryHelper)
adsServiceClientFactoryHelper - the ads service client factory helper.| Method Detail |
|---|
public <T> T getServiceClient(S adsSession,
Class<T> interfaceClass)
throws ServiceException
T - the service typeadsSession - the session associated with the desired
clientinterfaceClass - the class type of the desired client
ServiceException
protected <T> T createServiceClientProxy(D adsServiceDescriptor,
C adsServiceClient)
AdsServiceClient.
T - the service typeadsServiceDescriptor - descriptor with information on ads serviceadsServiceClient - client to be wrapped in a proxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||