Class ServicePropertiesModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.common.serviceprops.ServicePropertiesModule
- All Implemented Interfaces:
com.google.inject.Module
public class ServicePropertiesModule
extends com.google.inject.AbstractModule
Module that binds properties from
The properties found in the PropertyFile object(s) are all exposed a String Named properties. A read-only composite PropertyFile is bound as the
PropertyFile
s in the classpath (called service.properties
by
default)The properties found in the PropertyFile object(s) are all exposed a String Named properties. A read-only composite PropertyFile is bound as the
PropertyFile
Named property
"service.properties"-
Field Summary
-
Constructor Summary
ConstructorDescriptionServicePropertiesModule
(GuiceConfig configuration) ServicePropertiesModule
(PropertyFile properties) For unit tests only! -
Method Summary
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, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
configuration
-
-
Constructor Details
-
ServicePropertiesModule
For unit tests only!- Parameters:
properties
-
-
ServicePropertiesModule
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getConfiguration
-