Class YamlNodeStoreModule

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

@Beta public class YamlNodeStoreModule extends com.google.inject.AbstractModule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    YamlNodeStoreModule(Map<String,com.google.common.io.ByteSource> backing)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected final 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 final Map<String,YamlNode>
    provideYamlStore(Map<String,com.google.common.io.ByteSource> backing, com.google.common.base.Function<YamlNode,com.google.common.io.ByteSource> yamlSerializer, com.google.common.base.Function<com.google.common.io.ByteSource,YamlNode> yamlDeserializer)
     

    Methods inherited from class com.google.inject.AbstractModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • YamlNodeStoreModule

      public YamlNodeStoreModule(Map<String,com.google.common.io.ByteSource> backing)
    • YamlNodeStoreModule

      public YamlNodeStoreModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule
    • provideNodeStore

      @Provides @Singleton protected final 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 final Map<String,YamlNode> provideYamlStore(@Named("yaml") Map<String,com.google.common.io.ByteSource> backing, com.google.common.base.Function<YamlNode,com.google.common.io.ByteSource> yamlSerializer, com.google.common.base.Function<com.google.common.io.ByteSource,YamlNode> yamlDeserializer)