com.google.api.ads.common.lib.soap
Class ProductFrameworkModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.api.ads.common.lib.soap.ProductFrameworkModule
All Implemented Interfaces:
com.google.inject.Module

public class ProductFrameworkModule
extends com.google.inject.AbstractModule

Module for the product/framework.

Author:
Adam Rogal

Constructor Summary
ProductFrameworkModule()
           
 
Method Summary
protected  void configure()
           
protected  void configureConfigurations(URL propertiesUrl)
           
static ProductFrameworkModule determineSoapModule(Class<? extends Annotation> moduleAnnotationClass)
          Deprecated. the SOAP-framework-agnostic *Services utilities, the only classes which use this method, are now all deprecated.
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductFrameworkModule

public ProductFrameworkModule()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

configureConfigurations

protected void configureConfigurations(URL propertiesUrl)

determineSoapModule

@Deprecated
public static ProductFrameworkModule determineSoapModule(Class<? extends Annotation> moduleAnnotationClass)
Deprecated. the SOAP-framework-agnostic *Services utilities, the only classes which use this method, are now all deprecated.

Configures which SOAP framework to use. The library will attempt to determine which framework is to be used with this product. In order for this method to succeed without throwing an IllegalStateException, exactly one module on the classpath must be annotated with moduleAnnotationClass and an instance of this module must instantiate successfully.

Parameters:
moduleAnnotationClass - the Annotation used to mark classes that are valid modules to use with this product. The classpath will be searched for classes with this annotation.
Throws:
IllegalStateException - if the SOAP framework could not be configued. Possible causes include: no SOAP module is available, more than one SOAP module is available, or the only SOAP module available could not be instantiated.


Copyright © 2012. All Rights Reserved.