C
- the type of AdsServiceClient
S
- the type of AdsSession
D
- the type of AdsServiceDescriptor
public abstract class BaseServices<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor> extends Object implements AdsServicesInterface<S>
Modifier | Constructor and Description |
---|---|
protected |
BaseServices(BaseAdsServiceClientFactory<C,S,D> factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(S session,
Class<T> interfaceClass)
Gets a client for the service represented by the interface with a reference to the session.
|
protected BaseServices(BaseAdsServiceClientFactory<C,S,D> factory)
factory
- a factory capable of instantiating service clientspublic <T> T get(S session, Class<T> interfaceClass)
AdsServicesInterface
There is no guarantee that the objects returned by this method are thread-safe.
get
in interface AdsServicesInterface<S extends AdsSession>
T
- the service typesession
- your current sessioninterfaceClass
- the service interface class representing a SOAP serviceCopyright © 2018. All Rights Reserved.