Uses of Interface
com.google.inject.Module
Packages that use Module
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Guice (sounds like "juice")
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.Guice service provider interface
Helper methods for working with Guice.
-
Uses of Module in com.google.inject
Classes in com.google.inject that implement ModuleModifier and TypeClassDescriptionclass
AbstractModule is a helper class used to add bindings to the Guice injector.class
A module whose configuration information is hidden from its environment by default.Methods in com.google.inject with parameters of type ModuleModifier and TypeMethodDescriptionInjector.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
void
Uses the given module to configure more bindings.protected final void
Method parameters in com.google.inject with type arguments of type ModuleModifier and TypeMethodDescriptionInjector.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 ModuleModifier and TypeClassDescriptionfinal class
Creates bindings to methods annotated with @Provides
.final class
RealMapBinder<K,
V> The actual mapbinder plays several roles:final class
The actual multibinder plays several roles:final class
The actual OptionalBinder plays several roles.Methods in com.google.inject.internal that return ModuleModifier and TypeMethodDescriptionstatic 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
Returns a module which creates bindings for provider methods from the given object.Methods in com.google.inject.internal with parameters of type ModuleModifier and TypeMethodDescriptionstatic 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 ModuleModifier and TypeMethodDescriptionInternalInjectorCreator.addModules
(Iterable<? extends Module> modules) -
Uses of Module in com.google.inject.multibindings
Methods in com.google.inject.multibindings that return Module -
Uses of Module in com.google.inject.spi
Methods in com.google.inject.spi that return ModuleMethods in com.google.inject.spi with parameters of type ModuleModifier and TypeMethodDescriptionElements.getElements
(Module... modules) Records the elements executed bymodules
.Elements.getElements
(Stage stage, Module... modules) Records the elements executed bymodules
.Method parameters in com.google.inject.spi with type arguments of type Module -
Uses of Module in com.google.inject.util
Fields in com.google.inject.util declared as ModuleMethods in com.google.inject.util that return ModuleModifier and TypeMethodDescriptionstatic Module
Modules.combine()
Deprecated.this method call is effectively a no-op, just remove it.static Module
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Returns a new module that installs all ofmodules
.static Module
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 @invalid reference
Inject
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.Modules.OverriddenModuleBuilder.with()
Deprecated.there's no reason to use.with()
without any arguments.See the EDSL example atoverride()
.See the EDSL example atoverride()
.Methods in com.google.inject.util with parameters of type ModuleModifier and TypeMethodDescriptionstatic Module
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Returns a new module that installs all ofmodules
.Returns a builder that creates a module that overlays override modules over the given modules.See the EDSL example atoverride()
.Method parameters in com.google.inject.util with type arguments of type ModuleModifier and TypeMethodDescriptionstatic Module
Returns a new module that installs all ofmodules
.Returns a builder that creates a module that overlays override modules over the given modules.See the EDSL example atoverride()
.