@Beta
public class YamlNodeStoreModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
YamlNodeStoreModule() |
YamlNodeStoreModule(Map<String,com.google.common.io.ByteSource> backing) |
Modifier and Type | Method and Description |
---|---|
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,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) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class com.google.inject.AbstractModule
@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)
@Provides @Singleton protected Map<String,YamlNode> provideYamlStore(@Named(value="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)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.