Uses of Interface
com.google.inject.Module
Packages that use Module
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
.Guice (sounds like "juice")
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar
.Guice service provider interface
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar
.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.assistedinject
Methods in com.google.inject.assistedinject that return ModuleModifier and TypeMethodDescription<F> Module
<F> Module
FactoryModuleBuilder.build
(TypeLiteral<F> factoryInterface) See the factory configuration examples atFactoryModuleBuilder
.<F> Module
See the factory configuration examples atFactoryModuleBuilder
. -
Uses of Module in com.google.inject.grapher.graphviz
Classes in com.google.inject.grapher.graphviz that implement Module -
Uses of Module in com.google.inject.internal
Classes in com.google.inject.internal that implement ModuleModifier and TypeClassDescriptionprivate static class
private static class
final class
Creates bindings to methods annotated with @Provides
.final class
RealMapBinder<K,
V> The actual mapbinder plays several roles:private static final class
BindsMap<K, Set<V>>
and {Map<K, Set<Provider<V>>>
.final class
The actual multibinder plays several roles:private static class
We install the permit duplicates configuration as its own binding, all by itself.final class
The actual OptionalBinder plays several roles.Fields in com.google.inject.internal with type parameters of type ModuleMethods 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.private static Module
ProviderMethodsModule.forObject
(Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) Methods in com.google.inject.internal with parameters of type ModuleModifier and TypeMethodDescriptionInjectorImpl.createChildInjector
(Module... modules) InternalInjectorCreator.ToolStageInjector.createChildInjector
(Module... modules) static 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 TypeMethodDescription(package private) void
InjectorShell.Builder.addModules
(Iterable<? extends Module> modules) InternalInjectorCreator.addModules
(Iterable<? extends Module> modules) InjectorImpl.createChildInjector
(Iterable<? extends Module> modules) InternalInjectorCreator.ToolStageInjector.createChildInjector
(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.servlet
Classes in com.google.inject.servlet that implement ModuleModifier and TypeClassDescription(package private) final class
This is a left-factoring of all ServletModules installed in the system.class
Configures the servlet scopes and creates bindings for the servlet API objects so you can inject the request, response, session, etc. -
Uses of Module in com.google.inject.spi
Classes in com.google.inject.spi that implement ModuleFields in com.google.inject.spi with type parameters of type ModuleModifier and TypeFieldDescriptionprivate final Map
<Module, Elements.ModuleInfo> Elements.RecordingBinder.modules
Methods in com.google.inject.spi that return ModuleMethods in com.google.inject.spi with parameters of type ModuleModifier and TypeMethodDescriptionprivate void
Elements.RecordingBinder.forbidNestedScannerMethods
(Module module) Elements.getElements
(Module... modules) Records the elements executed bymodules
.Elements.getElements
(Stage stage, Module... modules) Records the elements executed bymodules
.void
Method parameters in com.google.inject.spi with type arguments of type Module -
Uses of Module in com.google.inject.throwingproviders
Classes in com.google.inject.throwingproviders that implement ModuleModifier and TypeClassDescription(package private) final class
Creates bindings to methods annotated with @CheckedProvides
.Methods in com.google.inject.throwingproviders that return ModuleModifier and TypeMethodDescription(package private) static Module
Returns a module which creates bindings for provider methods from the given module.static Module
Returns a module that installs @CheckedProvides
methods.Methods in com.google.inject.throwingproviders with parameters of type ModuleModifier and TypeMethodDescription(package private) static Module
Returns a module which creates bindings for provider methods from the given module.static Module
Returns a module that installs @CheckedProvides
methods. -
Uses of Module in com.google.inject.util
Classes in com.google.inject.util that implement ModuleModifier and TypeClassDescriptionprivate static class
private static final class
private static class
(package private) static class
private static final class
private static final class
private static final class
Fields in com.google.inject.util declared as ModuleFields in com.google.inject.util with type parameters of type ModuleModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableSet
<Module> Modules.OverrideModule.baseModules
private final com.google.common.collect.ImmutableSet
<Module> Modules.RealOverriddenModuleBuilder.baseModules
Modules.CombinedModule.modulesSet
private final com.google.common.collect.ImmutableSet
<Module> Modules.OverrideModule.overrides
Methods 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.private static Module
Modules.extractScanners
(Iterable<Element> elements) 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()
.Modules.RealOverriddenModuleBuilder.with()
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()
.Constructor parameters in com.google.inject.util with type arguments of type ModuleModifierConstructorDescription(package private)
CombinedModule
(Iterable<? extends Module> modules) (package private)
OverrideModule
(Iterable<? extends Module> overrides, com.google.common.collect.ImmutableSet<Module> baseModules) (package private)
OverrideModule
(Iterable<? extends Module> overrides, com.google.common.collect.ImmutableSet<Module> baseModules) private
RealOverriddenModuleBuilder
(Iterable<? extends Module> baseModules)