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.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.spi Guice service provider interfacecom.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 classAbstractModuleA support class forModules which reduces repetition and results in a more readable configuration.classPrivateModuleA 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 InjectorInjector. 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 voidAbstractModule. install(Module module)voidBinder. install(Module module)Uses the given module to configure more bindings.protected voidPrivateModule. install(Module module)Method parameters in com.google.inject with type arguments of type Module Modifier and Type Method Description InjectorInjector. 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 Module Modifier and Type Class Description classProviderMethodsModuleCreates bindings to methods annotated with @Provides.classRealMapBinder<K,V>The actual mapbinder plays several roles:classRealMultibinder<T>The actual multibinder plays several roles:classRealOptionalBinder<T>The actual OptionalBinder plays several roles.Methods in com.google.inject.internal that return Module Modifier and Type Method Description static ModuleProviderMethodsModule. forModule(Module module)Returns 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 ModuleProviderMethodsModule. forObject(Object object)Returns a module which creates bindings for provider methods from the given object.Methods in com.google.inject.internal with parameters of type Module Modifier and Type Method Description static ModuleProviderMethodsModule. 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 InternalInjectorCreatorInternalInjectorCreator. addModules(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 ModuleMultibindingsScanner. asModule()Deprecated.This functionality is now installed by default. -
Uses of Module in com.google.inject.spi
Methods in com.google.inject.spi that return Module Modifier and Type Method Description static ModuleElements. getModule(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 static List<Element>Elements. getElements(Module... modules)Records the elements executed bymodules.static List<Element>Elements. getElements(Stage stage, Module... modules)Records the elements executed bymodules.Method parameters in com.google.inject.spi with type arguments of type Module Modifier and Type Method Description static List<Element>Elements. getElements(Stage stage, Iterable<? extends Module> modules)Records the elements executed bymodules.static List<Element>Elements. getElements(Iterable<? extends Module> modules)Records the elements executed bymodules. -
Uses of Module in com.google.inject.util
Fields in com.google.inject.util declared as Module Modifier and Type Field Description static ModuleModules. EMPTY_MODULEMethods in com.google.inject.util that return Module Modifier and Type Method Description static ModuleModules. combine()Deprecated.this method call is effectively a no-op, just remove it.static ModuleModules. combine(Module module)Deprecated.there's no need to "combine" one module; just install it directly.static ModuleModules. combine(Module... modules)Returns a new module that installs all ofmodules.static ModuleModules. combine(Iterable<? extends Module> modules)Returns 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 @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.ModuleModules.OverriddenModuleBuilder. with()Deprecated.there's no reason to use.with()without any arguments.ModuleModules.OverriddenModuleBuilder. with(Module... overrides)See the EDSL example atoverride().ModuleModules.OverriddenModuleBuilder. with(Iterable<? extends Module> overrides)See the EDSL example atoverride().Methods in com.google.inject.util with parameters of type Module Modifier and Type Method Description static ModuleModules. combine(Module module)Deprecated.there's no need to "combine" one module; just install it directly.static ModuleModules. combine(Module... modules)Returns a new module that installs all ofmodules.static Modules.OverriddenModuleBuilderModules. override(Module... modules)Returns a builder that creates a module that overlays override modules over the given modules.ModuleModules.OverriddenModuleBuilder. with(Module... overrides)See the EDSL example atoverride().Method parameters in com.google.inject.util with type arguments of type Module Modifier and Type Method Description static ModuleModules. combine(Iterable<? extends Module> modules)Returns a new module that installs all ofmodules.static Modules.OverriddenModuleBuilderModules. override(Iterable<? extends Module> modules)Returns a builder that creates a module that overlays override modules over the given modules.ModuleModules.OverriddenModuleBuilder. with(Iterable<? extends Module> overrides)See the EDSL example atoverride().
-