public abstract class ConfigurationModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
ConfigurationModule() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
bindConfigurations() |
protected void |
bindEnvironmentVariables()
Add the System Variables properties.
|
protected XMLPropertiesFormatBindingBuilder |
bindProperties(File propertiesResource) |
protected void |
bindProperties(Iterable<Map.Entry<String,String>> properties) |
protected void |
bindProperties(Iterator<Map.Entry<String,String>> properties) |
protected void |
bindProperties(Map<String,String> properties) |
protected void |
bindProperties(Properties properties) |
protected XMLPropertiesFormatBindingBuilder |
bindProperties(String classPathResource) |
protected XMLPropertiesFormatBindingBuilder |
bindProperties(String classPathResource,
ClassLoader classLoader) |
protected XMLPropertiesFormatBindingBuilder |
bindProperties(URI propertiesResource) |
protected XMLPropertiesFormatBindingBuilder |
bindProperties(URL propertiesResource) |
protected PropertyValueBindingBuilder |
bindProperty(String name)
Binds to a property with the given name.
|
protected void |
bindSystemProperties()
Add the Environment Variables properties, prefixed by
env. . |
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected final void configure()
configure
in class com.google.inject.AbstractModule
protected abstract void bindConfigurations()
protected PropertyValueBindingBuilder bindProperty(String name)
name
- The property nameprotected void bindProperties(Properties properties)
properties
- protected void bindProperties(Iterable<Map.Entry<String,String>> properties)
properties
- protected void bindProperties(Iterator<Map.Entry<String,String>> properties)
properties
- protected void bindSystemProperties()
env.
.protected void bindProperties(Map<String,String> properties)
properties
- protected void bindEnvironmentVariables()
protected XMLPropertiesFormatBindingBuilder bindProperties(File propertiesResource)
propertiesResource
- protected XMLPropertiesFormatBindingBuilder bindProperties(URI propertiesResource)
propertiesResource
- protected XMLPropertiesFormatBindingBuilder bindProperties(String classPathResource)
classPathResource
- protected XMLPropertiesFormatBindingBuilder bindProperties(String classPathResource, ClassLoader classLoader)
classPathResource
- classLoader
- protected XMLPropertiesFormatBindingBuilder bindProperties(URL propertiesResource)
propertiesResource
- Copyright © 2010–2015 99 Software Foundation. All rights reserved.