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 class
AbstractModule
AbstractModule is a helper class used to add bindings to the Guice injector.class
PrivateModule
A 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 Injector
Injector. createChildInjector(Module... modules)
Returns a new injector that inherits all state from this injector.static Injector
Guice. createInjector(Module... modules)
Creates an injector for the given set of modules.static Injector
Guice. createInjector(Stage stage, Module... modules)
Creates an injector for the given set of modules, in a given development stage.protected void
AbstractModule. install(Module module)
void
Binder. install(Module module)
Uses the given module to configure more bindings.protected void
PrivateModule. install(Module module)
Method parameters in com.google.inject with type arguments of type Module Modifier and Type Method Description Injector
Injector. createChildInjector(Iterable<? extends Module> modules)
Returns a new injector that inherits all state from this injector.static Injector
Guice. createInjector(Stage stage, Iterable<? extends Module> modules)
Creates an injector for the given set of modules, in a given development stage.static Injector
Guice. 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> Module
FactoryModuleBuilder. build(Key<F> factoryInterface)
<F> Module
FactoryModuleBuilder. build(TypeLiteral<F> factoryInterface)
See the factory configuration examples atFactoryModuleBuilder
.<F> Module
FactoryModuleBuilder. 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 Module
DaggerAdapter.Builder. build()
Returns a module that will configure bindings based on the modules & scanners.static Module
DaggerAdapter. from(Object... daggerModuleObjects)
Creates a newDaggerAdapter
fromdaggerModuleObjects
. -
Uses of Module in com.google.inject.grapher.graphviz
Classes in com.google.inject.grapher.graphviz that implement Module Modifier and Type Class Description class
GraphvizModule
Module 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 Module
MultibindingsScanner. 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 class
PersistModule
Install 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 class
JpaPersistModule
JPA 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 class
ServletModule
Configures 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 Module
Elements. 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 class
Struts2GuicePluginModule
Initializes 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 class
BoundFieldModule
A Guice module that automatically adds Guice bindings into the injector for allBind
annotated fields of a specified object.static class
BoundFieldModule.WithPermits
Wrapper 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 Module
ThrowingProviderBinder. forModule(Module module)
Returns a module that installs @CheckedProvides
methods.Methods in com.google.inject.throwingproviders with parameters of type Module Modifier and Type Method Description static Module
ThrowingProviderBinder. forModule(Module module)
Returns a module that installs @CheckedProvides
methods. -
Uses of Module in com.google.inject.util
Fields in com.google.inject.util declared as Module Modifier and Type Field Description static Module
Modules. EMPTY_MODULE
Methods in com.google.inject.util that return Module Modifier and Type Method Description static Module
Modules. combine()
Deprecated.this method call is effectively a no-op, just remove it.static Module
Modules. combine(Module module)
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Modules. combine(Module... modules)
Returns a new module that installs all ofmodules
.static Module
Modules. combine(Iterable<? extends Module> modules)
Returns a new module that installs all ofmodules
.static Module
Modules. disableCircularProxiesModule()
Returns a module that will configure the injector to disable circular proxies.static Module
Modules. requireAtInjectOnConstructorsModule()
Returns a module that will configure the injector to require @Inject
on constructors.static Module
Modules. requireExactBindingAnnotationsModule()
Returns a module that will configure the injector to require an exactly matching binding annotation.static Module
Modules. requireExplicitBindingsModule()
Returns a module that will configure the injector to require explicit bindings.Module
Modules.OverriddenModuleBuilder. with()
Deprecated.there's no reason to use.with()
without any arguments.Module
Modules.OverriddenModuleBuilder. with(Module... overrides)
See the EDSL example atoverride()
.Module
Modules.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 Module
Modules. combine(Module module)
Deprecated.there's no need to "combine" one module; just install it directly.static Module
Modules. combine(Module... modules)
Returns a new module that installs all ofmodules
.static Modules.OverriddenModuleBuilder
Modules. override(Module... modules)
Returns a builder that creates a module that overlays override modules over the given modules.Module
Modules.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 Module
Modules. combine(Iterable<? extends Module> modules)
Returns a new module that installs all ofmodules
.static Modules.OverriddenModuleBuilder
Modules. override(Iterable<? extends Module> modules)
Returns a builder that creates a module that overlays override modules over the given modules.Module
Modules.OverriddenModuleBuilder. with(Iterable<? extends Module> overrides)
See the EDSL example atoverride()
.
-