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 TypeClassDescriptionclassAbstractModule is a helper class used to add bindings to the Guice injector.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.internal
Classes in com.google.inject.internal that implement ModuleModifier and TypeClassDescriptionfinal classCreates bindings to methods annotated with @Provides.final classRealMapBinder<K,V> The actual mapbinder plays several roles:final classThe actual multibinder plays several roles:final classThe actual OptionalBinder plays several roles.Methods 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.Methods in com.google.inject.internal with parameters of type ModuleModifier and TypeMethodDescriptionstatic 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 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 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.static ModuleModules.requireAtInjectOnConstructorsModule()Returns a module that will configure the injector to require @on constructors.invalid reference
Injectstatic 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().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().