org.jclouds.byon.config
Class YamlNodeStoreModule

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

@Beta
public class YamlNodeStoreModule
extends com.google.inject.AbstractModule

Author:
Adrian Cole

Nested Class Summary
static class YamlNodeStoreModule.YAMLCopyInputStreamInputSupplierMap
           
 
Constructor Summary
YamlNodeStoreModule()
           
YamlNodeStoreModule(Map<String,InputStream> backing)
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.cache.LoadingCache<String,Node> provideNodeStore(Map<String,YamlNode> backing, com.google.common.base.Function<Node,YamlNode> yamlSerializer, com.google.common.base.Function<YamlNode,Node> yamlDeserializer)
           
protected  Map<String,YamlNode> provideYamlStore(Map<String,InputStream> backing, com.google.common.base.Function<YamlNode,InputStream> yamlSerializer, com.google.common.base.Function<InputStream,YamlNode> yamlDeserializer)
           
 
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

YamlNodeStoreModule

public YamlNodeStoreModule(Map<String,InputStream> backing)

YamlNodeStoreModule

public YamlNodeStoreModule()
Method Detail

configure

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

provideNodeStore

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<String,Node> provideNodeStore(Map<String,YamlNode> backing,
                                                                                                com.google.common.base.Function<Node,YamlNode> yamlSerializer,
                                                                                                com.google.common.base.Function<YamlNode,Node> yamlDeserializer)

provideYamlStore

@Provides
@Singleton
protected Map<String,YamlNode> provideYamlStore(@Named(value="yaml")
                                                                   Map<String,InputStream> backing,
                                                                   com.google.common.base.Function<YamlNode,InputStream> yamlSerializer,
                                                                   com.google.common.base.Function<InputStream,YamlNode> yamlDeserializer)


Copyright © 2009-2012 jclouds. All Rights Reserved.