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 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(java.lang.Iterable<? extends Module> modules)Returns a new injector that inherits all state from this injector.static InjectorGuice. createInjector(Stage stage, java.lang.Iterable<? extends Module> modules)Creates an injector for the given set of modules, in a given development stage.static InjectorGuice. 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> ModuleFactoryModuleBuilder. build(Key<F> factoryInterface)<F> ModuleFactoryModuleBuilder. build(TypeLiteral<F> factoryInterface)See the factory configuration examples atFactoryModuleBuilder.<F> ModuleFactoryModuleBuilder. 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 classGraphvizModuleModule 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 classInjectorShell.InheritedScannersModuleprivate static classInjectorShell.RootModuleclassProviderMethodsModuleCreates bindings to methods annotated with @Provides.classRealMapBinder<K,V>The actual mapbinder plays several roles:private static classRealMapBinder.MultimapBinder<K,V>BindsMap<K, Set<V>>and {Map<K, Set<Provider<V>>>.classRealMultibinder<T>The actual multibinder plays several roles:private static classRealMultibinder.PermitDuplicatesModuleWe install the permit duplicates configuration as its own binding, all by itself.classRealOptionalBinder<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. modulesMethods 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(java.lang.Object module, ModuleAnnotatedMethodScanner scanner)Returns a module which creates bindings methods in the module that match the scanner.static ModuleProviderMethodsModule. forObject(java.lang.Object object)Returns a module which creates bindings for provider methods from the given object.private static ModuleProviderMethodsModule. 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 InjectorInjectorImpl. createChildInjector(Module... modules)InjectorInternalInjectorCreator.ToolStageInjector. createChildInjector(Module... modules)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 (package private) voidInjectorShell.Builder. addModules(java.lang.Iterable<? extends Module> modules)InternalInjectorCreatorInternalInjectorCreator. addModules(java.lang.Iterable<? extends Module> modules)InjectorInjectorImpl. createChildInjector(java.lang.Iterable<? extends Module> modules)InjectorInternalInjectorCreator.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 ModuleMultibindingsScanner. 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) classInternalServletModuleThis is a left-factoring of all ServletModules installed in the system.classServletModuleConfigures 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 classElements.ElementsAsModuleFields 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. modulesMethods in com.google.inject.spi that return Module Modifier and Type Method Description static ModuleElements. 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 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.voidElements.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) classCheckedProviderMethodsModuleCreates bindings to methods annotated with @CheckedProvides.Methods in com.google.inject.throwingproviders that return Module Modifier and Type Method Description (package private) static ModuleCheckedProviderMethodsModule. forModule(Module module)Returns a module which creates bindings for provider methods from the given module.static ModuleThrowingProviderBinder. forModule(Module module)Returns a module that installs @CheckedProvidesmethods.Methods in com.google.inject.throwingproviders with parameters of type Module Modifier and Type Method Description (package private) static ModuleCheckedProviderMethodsModule. forModule(Module module)Returns a module which creates bindings for provider methods from the given module.static ModuleThrowingProviderBinder. forModule(Module module)Returns a module that installs @CheckedProvidesmethods. -
Uses of Module in com.google.inject.util
Classes in com.google.inject.util that implement Module Modifier and Type Class Description private static classModules.CombinedModuleprivate static classModules.EmptyModule(package private) static classModules.OverrideModuleFields in com.google.inject.util declared as Module Modifier and Type Field Description static ModuleModules. EMPTY_MODULEFields 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. baseModulesprivate com.google.common.collect.ImmutableSet<Module>Modules.RealOverriddenModuleBuilder. baseModules(package private) java.util.Set<Module>Modules.CombinedModule. modulesSetprivate com.google.common.collect.ImmutableSet<Module>Modules.OverrideModule. overridesMethods in com.google.inject.util that return Module Modifier and Type Method Description static ModuleModules. combine(Module... modules)Returns a new module that installs all ofmodules.static ModuleModules. combine(java.lang.Iterable<? extends Module> modules)Returns a new module that installs all ofmodules.private static ModuleModules. extractScanners(java.lang.Iterable<Element> elements)ModuleModules.OverriddenModuleBuilder. with(Module... overrides)See the EDSL example atoverride().ModuleModules.OverriddenModuleBuilder. with(java.lang.Iterable<? extends Module> overrides)See the EDSL example atoverride().ModuleModules.RealOverriddenModuleBuilder. with(Module... overrides)ModuleModules.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 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().ModuleModules.RealOverriddenModuleBuilder. with(Module... overrides)Method parameters in com.google.inject.util with type arguments of type Module Modifier and Type Method Description static ModuleModules. combine(java.lang.Iterable<? extends Module> modules)Returns a new module that installs all ofmodules.static Modules.OverriddenModuleBuilderModules. override(java.lang.Iterable<? extends Module> modules)Returns a builder that creates a module that overlays override modules over the given modules.ModuleModules.OverriddenModuleBuilder. with(java.lang.Iterable<? extends Module> overrides)See the EDSL example atoverride().ModuleModules.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)
-