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.assistedinject Extension for combining factory interfaces with injection; this extension requiresguice-assistedinject.jar
.com.google.inject.grapher.graphviz 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.servlet Servlet API scopes, bindings and registration; this extension requiresguice-servlet.jar
.com.google.inject.spi Guice service provider interfacecom.google.inject.throwingproviders Extension for injecting objects that may throw at provision time; this extension requiresguice-throwingproviders.jar
.com.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
AbstractModule is a helper class used to add bindings to the Guice injector.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(java.lang.Iterable<? extends Module> modules)
Returns a new injector that inherits all state from this injector.static Injector
Guice. createInjector(Stage stage, java.lang.Iterable<? extends Module> modules)
Creates an injector for the given set of modules, in a given development stage.static Injector
Guice. createInjector(java.lang.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 Module Modifier and Type Method Description <F> Module
FactoryModuleBuilder. build(Key<F> factoryInterface)
<F> Module
FactoryModuleBuilder. build(TypeLiteral<F> factoryInterface)
See the factory configuration examples atFactoryModuleBuilder
.<F> Module
FactoryModuleBuilder. build(java.lang.Class<F> factoryInterface)
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 Modifier and Type Class Description class
GraphvizModule
Module that provides classes needed byGraphvizGrapher
. -
Uses of Module in com.google.inject.internal
Classes in com.google.inject.internal that implement Module Modifier and Type Class Description private static class
InjectorShell.InheritedScannersModule
private static class
InjectorShell.RootModule
class
ProviderMethodsModule
Creates bindings to methods annotated with @Provides
.class
RealMapBinder<K,V>
The actual mapbinder plays several roles:private static class
RealMapBinder.MultimapBinder<K,V>
BindsMap<K, Set<V>>
and {Map<K, Set<Provider<V>>>
.class
RealMultibinder<T>
The actual multibinder plays several roles:private static class
RealMultibinder.PermitDuplicatesModule
We install the permit duplicates configuration as its own binding, all by itself.class
RealOptionalBinder<T>
The actual OptionalBinder plays several roles.Fields in com.google.inject.internal with type parameters of type Module Modifier and Type Field Description private java.util.List<Module>
InjectorShell.Builder. modules
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(java.lang.Object module, ModuleAnnotatedMethodScanner scanner)
Returns a module which creates bindings methods in the module that match the scanner.static Module
ProviderMethodsModule. forObject(java.lang.Object object)
Returns a module which creates bindings for provider methods from the given object.private static Module
ProviderMethodsModule. forObject(java.lang.Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner)
Methods in com.google.inject.internal with parameters of type Module Modifier and Type Method Description Injector
InjectorImpl. createChildInjector(Module... modules)
Injector
InternalInjectorCreator.ToolStageInjector. createChildInjector(Module... modules)
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 (package private) void
InjectorShell.Builder. addModules(java.lang.Iterable<? extends Module> modules)
InternalInjectorCreator
InternalInjectorCreator. addModules(java.lang.Iterable<? extends Module> modules)
Injector
InjectorImpl. createChildInjector(java.lang.Iterable<? extends Module> modules)
Injector
InternalInjectorCreator.ToolStageInjector. createChildInjector(java.lang.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.servlet
Classes in com.google.inject.servlet that implement Module Modifier and Type Class Description (package private) class
InternalServletModule
This is a left-factoring of all ServletModules installed in the system.class
ServletModule
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 Module Modifier and Type Class Description private static class
Elements.ElementsAsModule
Fields in com.google.inject.spi with type parameters of type Module Modifier and Type Field Description private java.util.Map<Module,Elements.ModuleInfo>
Elements.RecordingBinder. modules
Methods in com.google.inject.spi that return Module Modifier and Type Method Description static Module
Elements. getModule(java.lang.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 private void
Elements.RecordingBinder. forbidNestedScannerMethods(Module module)
static java.util.List<Element>
Elements. getElements(Module... modules)
Records the elements executed bymodules
.static java.util.List<Element>
Elements. getElements(Stage stage, Module... modules)
Records the elements executed bymodules
.void
Elements.RecordingBinder. install(Module module)
Method parameters in com.google.inject.spi with type arguments of type Module Modifier and Type Method Description static java.util.List<Element>
Elements. getElements(Stage stage, java.lang.Iterable<? extends Module> modules)
Records the elements executed bymodules
.static java.util.List<Element>
Elements. getElements(java.lang.Iterable<? extends Module> modules)
Records the elements executed bymodules
. -
Uses of Module in com.google.inject.throwingproviders
Classes in com.google.inject.throwingproviders that implement Module Modifier and Type Class Description (package private) class
CheckedProviderMethodsModule
Creates bindings to methods annotated with @CheckedProvides
.Methods in com.google.inject.throwingproviders that return Module Modifier and Type Method Description (package private) static Module
CheckedProviderMethodsModule. forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.static Module
ThrowingProviderBinder. forModule(Module module)
Returns a module that installs @CheckedProvides
methods.Methods in com.google.inject.throwingproviders with parameters of type Module Modifier and Type Method Description (package private) static Module
CheckedProviderMethodsModule. forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.static Module
ThrowingProviderBinder. forModule(Module module)
Returns a module that installs @CheckedProvides
methods. -
Uses of Module in com.google.inject.util
Classes in com.google.inject.util that implement Module Modifier and Type Class Description private static class
Modules.CombinedModule
private static class
Modules.DisableCircularProxiesModule
private static class
Modules.EmptyModule
(package private) static class
Modules.OverrideModule
private static class
Modules.RequireAtInjectOnConstructorsModule
private static class
Modules.RequireExactBindingAnnotationsModule
private static class
Modules.RequireExplicitBindingsModule
Fields in com.google.inject.util declared as Module Modifier and Type Field Description static Module
Modules. EMPTY_MODULE
Fields in com.google.inject.util with type parameters of type Module Modifier and Type Field Description private com.google.common.collect.ImmutableSet<Module>
Modules.OverrideModule. baseModules
private com.google.common.collect.ImmutableSet<Module>
Modules.RealOverriddenModuleBuilder. baseModules
(package private) java.util.Set<Module>
Modules.CombinedModule. modulesSet
private com.google.common.collect.ImmutableSet<Module>
Modules.OverrideModule. overrides
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(java.lang.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.private static Module
Modules. extractScanners(java.lang.Iterable<Element> elements)
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(java.lang.Iterable<? extends Module> overrides)
See the EDSL example atoverride()
.Module
Modules.RealOverriddenModuleBuilder. with()
Module
Modules.RealOverriddenModuleBuilder. with(Module... overrides)
Module
Modules.RealOverriddenModuleBuilder. with(java.lang.Iterable<? extends Module> overrides)
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()
.Module
Modules.RealOverriddenModuleBuilder. with(Module... overrides)
Method parameters in com.google.inject.util with type arguments of type Module Modifier and Type Method Description static Module
Modules. combine(java.lang.Iterable<? extends Module> modules)
Returns a new module that installs all ofmodules
.static Modules.OverriddenModuleBuilder
Modules. override(java.lang.Iterable<? extends Module> modules)
Returns a builder that creates a module that overlays override modules over the given modules.Module
Modules.OverriddenModuleBuilder. with(java.lang.Iterable<? extends Module> overrides)
See the EDSL example atoverride()
.Module
Modules.RealOverriddenModuleBuilder. with(java.lang.Iterable<? extends Module> overrides)
Constructor parameters in com.google.inject.util with type arguments of type Module Constructor Description CombinedModule(java.lang.Iterable<? extends Module> modules)
OverrideModule(java.lang.Iterable<? extends Module> overrides, com.google.common.collect.ImmutableSet<Module> baseModules)
OverrideModule(java.lang.Iterable<? extends Module> overrides, com.google.common.collect.ImmutableSet<Module> baseModules)
RealOverriddenModuleBuilder(java.lang.Iterable<? extends Module> baseModules)
-