public class ConfigBindingModule
extends com.google.inject.AbstractModule
Config.
Note that not all configuration paths may be available because configuration is introspected using jersey serialization api and some configuration classes may only consume properties (e.g. value consumed directly in setter - impossible to read back).
All content types are bound by declaration type (as they declared in configuration class). All primitive types
are boxed. All collection types like List, Set, Map, Multimap are bound by collection type (List, Set etc).
Generics are always used in binding (so @inject @Config("path") List<String> val will work and
@inject @Config("path") List val will not).
Root configuration objects are bound with and without qualifier, except root interfaces which are bound with qualifier only.
ConfigurationTree instance is also bound directly to be used for custom configuration analysis.
for more info on usage,
GuiceyOptions.BindConfigurationByPath| Constructor and Description |
|---|
ConfigBindingModule(io.dropwizard.Configuration configuration,
ConfigurationTree tree) |
| Modifier and Type | Method and Description |
|---|---|
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, requireBindingpublic ConfigBindingModule(io.dropwizard.Configuration configuration,
ConfigurationTree tree)