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 TypeClassDescriptionclassA support class forModules which reduces repetition and results in a more readable configuration.classA 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 InjectorGuice.createInjector(Module... modules) Creates an injector for the given set of modules.static InjectorGuice.createInjector(Stage stage, Module... modules) Creates an injector for the given set of modules, in a given development stage.protected voidvoidUses the given module to configure more bindings.protected final voidMethod 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 InjectorGuice.createInjector(Stage stage, Iterable<? extends Module> modules) Creates an injector for the given set of modules, in a given development stage.static InjectorGuice.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> ModuleFactoryModuleBuilder.build(TypeLiteral<F> factoryInterface) See the factory configuration examples atFactoryModuleBuilder.<F> ModuleSee 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 classprivate static classfinal classCreates bindings to methods annotated with @Provides.final classRealMapBinder<K,V> The actual mapbinder plays several roles:private static final classBindsMap<K, Set<V>>and {Map<K, Set<Provider<V>>>.final classThe actual multibinder plays several roles:private static classWe install the permit duplicates configuration as its own binding, all by itself.final classThe 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 ModuleReturns a module which creates bindings for provider methods from the given module.static ModuleProviderMethodsModule.forModule(Object module, ModuleAnnotatedMethodScanner scanner) Returns a module which creates bindings methods in the module that match the scanner.static ModuleReturns a module which creates bindings for provider methods from the given object.private static ModuleProviderMethodsModule.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 ModuleReturns 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) voidInjectorShell.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 classThis is a left-factoring of all ServletModules installed in the system.classConfigures 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.modulesMethods 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.voidMethod 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 classCreates bindings to methods annotated with @CheckedProvides.Methods in com.google.inject.throwingproviders that return ModuleModifier and TypeMethodDescription(package private) static ModuleReturns a module which creates bindings for provider methods from the given module.static ModuleReturns a module that installs @CheckedProvidesmethods.Methods in com.google.inject.throwingproviders with parameters of type ModuleModifier and TypeMethodDescription(package private) static ModuleReturns a module which creates bindings for provider methods from the given module.static ModuleReturns a module that installs @CheckedProvidesmethods. -
Uses of Module in com.google.inject.util
Classes in com.google.inject.util that implement ModuleModifier and TypeClassDescriptionprivate static classprivate static final classprivate static class(package private) static classprivate static final classprivate static final classprivate static final classFields 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.baseModulesprivate final com.google.common.collect.ImmutableSet<Module>Modules.RealOverriddenModuleBuilder.baseModulesModules.CombinedModule.modulesSetprivate final com.google.common.collect.ImmutableSet<Module>Modules.OverrideModule.overridesMethods in com.google.inject.util that return ModuleModifier and TypeMethodDescriptionstatic ModuleModules.combine()Deprecated.this method call is effectively a no-op, just remove it.static ModuleDeprecated.there's no need to "combine" one module; just install it directly.static ModuleReturns a new module that installs all ofmodules.static ModuleReturns a new module that installs all ofmodules.static ModuleModules.disableCircularProxiesModule()Returns a module that will configure the injector to disable circular proxies.private static ModuleModules.extractScanners(Iterable<Element> elements) static ModuleModules.requireAtInjectOnConstructorsModule()Returns a module that will configure the injector to require @Injecton constructors.static ModuleModules.requireExactBindingAnnotationsModule()Returns a module that will configure the injector to require an exactly matching binding annotation.static ModuleModules.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 ModuleDeprecated.there's no need to "combine" one module; just install it directly.static ModuleReturns 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 ModuleReturns 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) privateRealOverriddenModuleBuilder(Iterable<? extends Module> baseModules)