Class NamedConfigParametersModule
java.lang.Object
com.google.inject.AbstractModule
com.github.joschi.jadconfig.guice.NamedConfigParametersModule
- All Implemented Interfaces:
com.google.inject.Module
public class NamedConfigParametersModule
extends com.google.inject.AbstractModule
A Guice module which registers all fields of the provided objects annotated with
Parameter
as named bindings and optionally also adds bindings of the object instances themselves.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newNamedConfigParametersModuleinstance and add bindings for the instances inbeans.NamedConfigParametersModule(Collection beans, boolean registerBeans) Create a newNamedConfigParametersModuleinstance. -
Method Summary
Methods inherited from class com.google.inject.AbstractModule
configure
-
Constructor Details
-
NamedConfigParametersModule
Create a newNamedConfigParametersModuleinstance.- Parameters:
beans- ACollectioncontaining all instances of the configuration beans which should be registered.registerBeans- Iftrue, the module will add bindings for the instances inbeans.
-
NamedConfigParametersModule
Create a newNamedConfigParametersModuleinstance and add bindings for the instances inbeans.- Parameters:
beans- ACollectioncontaining all instances of the configuration beans which should be registered.
-