C
- the type of AdsServiceClient
S
- the type of AdsSession
D
- the type of AdsServiceDescriptor
public class AdsServiceClientFactory<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor> extends Object
Constructor and Description |
---|
AdsServiceClientFactory(AdsServiceClientFactoryHelper adsServiceClientFactoryHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getServiceClient(S adsSession,
Class<T> interfaceClass)
Gets a client given a session and the class of the desired stub interface.
|
@Inject public AdsServiceClientFactory(AdsServiceClientFactoryHelper adsServiceClientFactoryHelper)
adsServiceClientFactoryHelper
- the ads service client factory helper.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 clientServiceException
- if the service client could not be createdCopyright © 2018. All Rights Reserved.