Uses of Interface
com.google.inject.Module
-
Packages that use Module Package Description com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.com.google.inject.internal Guice (sounds like "juice")com.google.inject.multibindings Extension for binding multiple instances in a collection; this extension requiresguice-multibindings.jar
.com.google.inject.spi Guice service provider interfacecom.google.inject.util Helper methods for working with Guice. -
-
Uses of Module in com.google.inject
Classes in com.google.inject that implement Module Modifier and Type Class Description class
AbstractModule
A support class forModule
s which reduces repetition and results in a more readable configuration.class
PrivateModule
A module whose configuration information is hidden from its environment by default.Methods in com.google.inject with parameters of type Module Modifier and Type Method Description Injector
Injector. createChildInjector(Module... modules)
Returns a new injector that inherits all state from this injector.static Injector
Guice. createInjector(Module... modules)
Creates an injector for the given set of modules.static Injector
Guice. createInjector(Stage stage, Module... modules)
Creates an injector for the given set of modules, in a given development stage.protected void
AbstractModule. install(Module module)
void
Binder. install(Module module)
Uses the given module to configure more bindings.protected void
PrivateModule. install(Module module)
Method parameters in com.google.inject with type arguments of type Module Modifier and Type Method Description Injector
Injector. createChildInjector(Iterable<? extends Module> modules)
Returns a new injector that inherits all state from this injector.static Injector
Guice. createInjector(Stage stage, Iterable<? extends Module> modules)
Creates an injector for the given set of modules, in a given development stage.static Injector
Guice. createInjector(Iterable<? extends Module> modules)
Creates an injector for the given set of modules. -
Uses of Module in com.google.inject.internal
Classes in com.google.inject.internal that implement Module Modifier and Type Class Description class
ProviderMethodsModule
Creates bindings to methods annotated with @Provides
.class
RealMapBinder<K,V>
The actual mapbinder plays several roles:class
RealMultibinder<T>
The actual multibinder plays several roles:class
RealOptionalBinder<T>
The actual OptionalBinder plays several roles.Methods in com.google.inject.internal that return Module Modifier and Type Method Description static Module
ProviderMethodsModule. forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.static Module
ProviderMethodsModule. forModule(Object module, ModuleAnnotatedMethodScanner scanner)
Returns a module which creates bindings methods in the module that match the scanner.static Module
ProviderMethodsModule. forObject(Object object)
Returns a module which creates bindings for provider methods from the given object.Methods in com.google.inject.internal with parameters of type Module Modifier and Type Method Description static Module
ProviderMethodsModule. forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.Method parameters in com.google.inject.internal with type arguments of type Module Modifier and Type Method Description InternalInjectorCreator
InternalInjectorCreator. addModules(Iterable<? extends Module> modules)
-
Uses of Module in com.google.inject.multibindings
Methods in com.google.inject.multibindings that return Module Modifier and Type Method Description static Module
MultibindingsScanner. asModule()
Deprecated.This functionality is now installed by default. -
Uses of Module in com.google.inject.spi
Methods in com.google.inject.spi that return Module Modifier and Type Method Description static Module
Elements. getModule(Iterable<? extends Element> elements)
Returns the module composed ofelements
.Methods in com.google.inject.spi with parameters of type Module Modifier and Type Method Description static List<Element>
Elements. getElements(Module... modules)
Records the elements executed bymodules
.static List<Element>
Elements. getElements(Stage stage, Module... modules)
Records the elements executed bymodules
.Method parameters in com.google.inject.spi with type arguments of type Module Modifier and Type Method Description static List<Element>
Elements. getElements(Stage stage, Iterable<? extends Module> modules)
Records the elements executed bymodules
.static List<Element>
Elements. getElements(Iterable<? extends Module> modules)
Records the elements executed bymodules
. -
Uses of Module in com.google.inject.util
Fields in com.google.inject.util declared as Module Modifier and Type Field Description static Module
Modules. EMPTY_MODULE
Methods in com.google.inject.util that return Module Modifier and Type Method Description static Module
Modules. combine()
Deprecated.this method call is effectively a no-op, just remove it.static Module
Modules. combine(Module module)
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Modules. combine(Module... modules)
Returns a new module that installs all ofmodules
.static Module
Modules. combine(Iterable<? extends Module> modules)
Returns a new module that installs all ofmodules
.static Module
Modules. disableCircularProxiesModule()
Returns a module that will configure the injector to disable circular proxies.static Module
Modules. requireAtInjectOnConstructorsModule()
Returns a module that will configure the injector to require @Inject
on constructors.static Module
Modules. requireExactBindingAnnotationsModule()
Returns a module that will configure the injector to require an exactly matching binding annotation.static Module
Modules. requireExplicitBindingsModule()
Returns a module that will configure the injector to require explicit bindings.Module
Modules.OverriddenModuleBuilder. with()
Deprecated.there's no reason to use.with()
without any arguments.Module
Modules.OverriddenModuleBuilder. with(Module... overrides)
See the EDSL example atoverride()
.Module
Modules.OverriddenModuleBuilder. with(Iterable<? extends Module> overrides)
See the EDSL example atoverride()
.Methods in com.google.inject.util with parameters of type Module Modifier and Type Method Description static Module
Modules. combine(Module module)
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Modules. combine(Module... modules)
Returns a new module that installs all ofmodules
.static Modules.OverriddenModuleBuilder
Modules. override(Module... modules)
Returns a builder that creates a module that overlays override modules over the given modules.Module
Modules.OverriddenModuleBuilder. with(Module... overrides)
See the EDSL example atoverride()
.Method parameters in com.google.inject.util with type arguments of type Module Modifier and Type Method Description static Module
Modules. combine(Iterable<? extends Module> modules)
Returns a new module that installs all ofmodules
.static Modules.OverriddenModuleBuilder
Modules. override(Iterable<? extends Module> modules)
Returns a builder that creates a module that overlays override modules over the given modules.Module
Modules.OverriddenModuleBuilder. with(Iterable<? extends Module> overrides)
See the EDSL example atoverride()
.
-