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.daggeradapter com.google.inject.grapher.graphviz com.google.inject.multibindings Extension for binding multiple instances in a collection; this extension requiresguice-multibindings.jar.com.google.inject.persist Guice Persist: a lightweight persistence library for Guice; this extension requiresguice-persist.jar.com.google.inject.persist.jpa guice-persist's Java Persistence API (JPA) support.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.struts2 com.google.inject.testing.fieldbinder com.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 classAbstractModuleAbstractModule is a helper class used to add bindings to the Guice injector.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.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(Class<F> factoryInterface)See the factory configuration examples atFactoryModuleBuilder. -
Uses of Module in com.google.inject.daggeradapter
Methods in com.google.inject.daggeradapter that return Module Modifier and Type Method Description ModuleDaggerAdapter.Builder. build()Returns a module that will configure bindings based on the modules & scanners.static ModuleDaggerAdapter. from(Object... daggerModuleObjects)Creates a newDaggerAdapterfromdaggerModuleObjects. -
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.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.persist
Classes in com.google.inject.persist that implement Module Modifier and Type Class Description classPersistModuleInstall this module to add guice-persist library support for JPA persistence providers. -
Uses of Module in com.google.inject.persist.jpa
Classes in com.google.inject.persist.jpa that implement Module Modifier and Type Class Description classJpaPersistModuleJPA provider for guice persist. -
Uses of Module in com.google.inject.servlet
Classes in com.google.inject.servlet that implement Module Modifier and Type Class Description 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
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.struts2
Classes in com.google.inject.struts2 that implement Module Modifier and Type Class Description classStruts2GuicePluginModuleInitializes the Struts 2 Guice Plugin. -
Uses of Module in com.google.inject.testing.fieldbinder
Classes in com.google.inject.testing.fieldbinder that implement Module Modifier and Type Class Description classBoundFieldModuleA Guice module that automatically adds Guice bindings into the injector for allBindannotated fields of a specified object.static classBoundFieldModule.WithPermitsWrapper of BoundFieldModule which enables attaching {@link @RestrictedBindingSource} permits to instances of it. -
Uses of Module in com.google.inject.throwingproviders
Methods in com.google.inject.throwingproviders that return Module Modifier and Type Method Description 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 static ModuleThrowingProviderBinder. forModule(Module module)Returns a module that installs @CheckedProvidesmethods. -
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().
-