com.google.api.ads.dfa.lib.factory.helper
Class DfaServiceClientFactoryHelper

java.lang.Object
  extended by com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper<DfaServiceClient,DfaSession,DfaServiceDescriptor>
      extended by com.google.api.ads.dfa.lib.factory.helper.DfaServiceClientFactoryHelper
All Implemented Interfaces:
AdsServiceClientFactoryHelper<DfaServiceClient,DfaSession,DfaServiceDescriptor>

public class DfaServiceClientFactoryHelper
extends BaseAdsServiceClientFactoryHelper<DfaServiceClient,DfaSession,DfaServiceDescriptor>

Factory helper for DFA.

Author:
Adam Rogal

Constructor Summary
DfaServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<DfaServiceClient,DfaSession,DfaServiceDescriptor> adsServiceClientFactory, FactoryModule.AdsServiceDescriptorFactoryInterface<DfaServiceDescriptor> adsServiceDescriptorFactory, SoapClientHandlerInterface soapClientHandler, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
          Constructor.
 
Method Summary
 String determineVersion(Class<?> interfaceClass)
          Determines what API version an ads service belongs to.
 
Methods inherited from class com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper
createAdsServiceClient, createServiceDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DfaServiceClientFactoryHelper

@Inject
public DfaServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<DfaServiceClient,DfaSession,DfaServiceDescriptor> adsServiceClientFactory,
                                            FactoryModule.AdsServiceDescriptorFactoryInterface<DfaServiceDescriptor> adsServiceDescriptorFactory,
                                            SoapClientHandlerInterface soapClientHandler,
                                            com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
Constructor.

Parameters:
adsServiceClientFactory - the ads service client factory
adsServiceDescriptorFactory - the ads service descriptor factory
soapClientHandler - the SOAP client handler
adsLibConfiguration - the lib configuration
Method Detail

determineVersion

public String determineVersion(Class<?> interfaceClass)
Description copied from interface: AdsServiceClientFactoryHelper
Determines what API version an ads service belongs to.

Parameters:
interfaceClass - the interface class of the service
Returns:
a string representation of the version of this service
See Also:
AdsServiceClientFactoryHelper.determineVersion(Class)


Copyright © 2012. All Rights Reserved.