org.jclouds.chef.config
Class ChefParserModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.chef.config.ChefParserModule
All Implemented Interfaces:
com.google.inject.Module

public class ChefParserModule
extends com.google.inject.AbstractModule


Nested Class Summary
static class ChefParserModule.DataBagItemAdapter
          writes or reads the literal directly
static class ChefParserModule.KeepLastRepeatedKeyMapTypeAdapterFactory
           
static interface ChefParserModule.PrivateKeyAdapter
           
static class ChefParserModule.PrivateKeyAdapterImpl
           
static interface ChefParserModule.PublicKeyAdapter
           
static class ChefParserModule.PublicKeyAdapterImpl
           
static interface ChefParserModule.X509CertificateAdapter
           
static class ChefParserModule.X509CertificateAdapterImpl
           
 
Constructor Summary
ChefParserModule()
           
 
Method Summary
protected  void configure()
           
 com.google.common.base.Function<org.jclouds.http.HttpResponse,Set<String>> provideCookbookDefinitionAdapter(ChefVersionSupplier chefVersionSupplier, ParseCookbookDefinitionFromJson v10parser, ParseKeySetFromJson v09parser)
           
 com.google.common.base.Function<org.jclouds.http.HttpResponse,Set<String>> provideCookbookDefinitionAdapter(ChefVersionSupplier chefVersionSupplier, ParseCookbookVersionsV10FromJson v10parser, ParseCookbookVersionsV09FromJson v09parser)
           
 Map<Type,Object> provideCustomAdapterBindings(ChefParserModule.DataBagItemAdapter adapter, ChefParserModule.PrivateKeyAdapter privateAdapter, ChefParserModule.PublicKeyAdapter publicAdapter, ChefParserModule.X509CertificateAdapter certAdapter)
           
 
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

ChefParserModule

public ChefParserModule()
Method Detail

provideCustomAdapterBindings

@Provides
@Singleton
public Map<Type,Object> provideCustomAdapterBindings(ChefParserModule.DataBagItemAdapter adapter,
                                                                        ChefParserModule.PrivateKeyAdapter privateAdapter,
                                                                        ChefParserModule.PublicKeyAdapter publicAdapter,
                                                                        ChefParserModule.X509CertificateAdapter certAdapter)

provideCookbookDefinitionAdapter

@Provides
@Singleton
public com.google.common.base.Function<org.jclouds.http.HttpResponse,Set<String>> provideCookbookDefinitionAdapter(ChefVersionSupplier chefVersionSupplier,
                                                                                                                                      ParseCookbookDefinitionFromJson v10parser,
                                                                                                                                      ParseKeySetFromJson v09parser)

provideCookbookDefinitionAdapter

@Provides
@Singleton
public com.google.common.base.Function<org.jclouds.http.HttpResponse,Set<String>> provideCookbookDefinitionAdapter(ChefVersionSupplier chefVersionSupplier,
                                                                                                                                      ParseCookbookVersionsV10FromJson v10parser,
                                                                                                                                      ParseCookbookVersionsV09FromJson v09parser)

configure

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


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.