com.google.api.ads.common.lib.factory
Class FactoryModule<C extends AdsServiceClient<S,D>,D extends AdsServiceDescriptor,S extends AdsSession,H extends AdsServiceClientFactoryHelper<C,S,D>>

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.api.ads.common.lib.factory.FactoryModule<C,D,S,H>
Type Parameters:
C - the subclass of AdsServiceClient
D - the subclass of AdsServiceDescriptor
S - the subclass of AdsSession
H - the subclass of AdsServiceClientFactoryHelper
All Implemented Interfaces:
com.google.inject.Module

public class FactoryModule<C extends AdsServiceClient<S,D>,D extends AdsServiceDescriptor,S extends AdsSession,H extends AdsServiceClientFactoryHelper<C,S,D>>
extends com.google.inject.AbstractModule

Module for factories.

Author:
Adam Rogal

Nested Class Summary
static interface FactoryModule.AdsServiceClientFactoryInterface<C extends AdsServiceClient<S,D>,S extends AdsSession,D extends AdsServiceDescriptor>
          Factory interface class to create AdsServiceClient.
static interface FactoryModule.AdsServiceDescriptorFactoryInterface<D extends AdsServiceDescriptor>
          Factory interface class to create AdsServiceDescriptor.
 
Constructor Summary
FactoryModule(com.google.inject.TypeLiteral adsServiceClientFactoryTypeLiteral, com.google.inject.TypeLiteral adsServiceDescriptorFactoryTypeLiteral, com.google.inject.TypeLiteral adsServiceClientTypeLiteral, com.google.inject.TypeLiteral adsServiceDescriptorTypeLiteral, Class<H> factoryHelperClass, Class<?> factoryClass)
          Constructor.
 
Method Summary
protected  void configure()
           
 
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

FactoryModule

public FactoryModule(com.google.inject.TypeLiteral adsServiceClientFactoryTypeLiteral,
                     com.google.inject.TypeLiteral adsServiceDescriptorFactoryTypeLiteral,
                     com.google.inject.TypeLiteral adsServiceClientTypeLiteral,
                     com.google.inject.TypeLiteral adsServiceDescriptorTypeLiteral,
                     Class<H> factoryHelperClass,
                     Class<?> factoryClass)
Constructor.

Parameters:
adsServiceClientFactoryTypeLiteral - the factory type literal which contains a FactoryModule.AdsServiceClientFactoryInterface
adsServiceDescriptorFactoryTypeLiteral - the factory type literal which contains a FactoryModule.AdsServiceDescriptorFactoryInterface
adsServiceClientTypeLiteral - the ads service client literal which contains a AdsServiceClient
adsServiceDescriptorTypeLiteral - the ads service descriptor literal which contains a AdsServiceDescriptor
factoryHelperClass - the factory helper class
factoryClass - the factory class
Method Detail

configure

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


Copyright © 2012. All Rights Reserved.