org.nnsoft.guice.rocoto.configuration
Class ConfigurationModule
java.lang.Object
com.google.inject.AbstractModule
org.nnsoft.guice.rocoto.configuration.ConfigurationModule
- All Implemented Interfaces:
- com.google.inject.Module
public abstract class ConfigurationModule
- extends com.google.inject.AbstractModule
The ConfigurationModule simplifies the task of loading configurations in Google Guice.
| 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 |
ConfigurationModule
public ConfigurationModule()
configure
protected final void configure()
- Specified by:
configure in class com.google.inject.AbstractModule
bindConfigurations
protected abstract void bindConfigurations()
bindProperty
protected PropertyValueBindingBuilder bindProperty(String name)
- Binds to a property with the given name.
- Parameters:
name - The property name
- Returns:
- The property value binder
bindProperties
protected void bindProperties(Properties properties)
- Parameters:
properties -
bindProperties
protected void bindProperties(Iterable<Map.Entry<String,String>> properties)
- Parameters:
properties -
bindProperties
protected void bindProperties(Iterator<Map.Entry<String,String>> properties)
- Parameters:
properties -
bindSystemProperties
protected void bindSystemProperties()
- Add the Environment Variables properties, prefixed by
env..
bindProperties
protected void bindProperties(Map<String,String> properties)
- Parameters:
properties -
bindEnvironmentVariables
protected void bindEnvironmentVariables()
- Add the System Variables properties.
bindProperties
protected XMLPropertiesFormatBindingBuilder bindProperties(File propertiesResource)
- Parameters:
propertiesResource -
- Returns:
bindProperties
protected XMLPropertiesFormatBindingBuilder bindProperties(URI propertiesResource)
- Parameters:
propertiesResource -
- Returns:
bindProperties
protected XMLPropertiesFormatBindingBuilder bindProperties(String classPathResource)
- Parameters:
classPathResource -
- Returns:
bindProperties
protected XMLPropertiesFormatBindingBuilder bindProperties(String classPathResource,
ClassLoader classLoader)
- Parameters:
classPathResource - classLoader -
- Returns:
bindProperties
protected XMLPropertiesFormatBindingBuilder bindProperties(URL propertiesResource)
- Parameters:
propertiesResource -
- Returns:
Copyright © 2010-2012 99 Software Foundation. All Rights Reserved.