Uses of Interface
com.google.inject.Injector
Packages that use Injector
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
.Guice (sounds like "juice")
Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar
.Guice service provider interface
JMX integration; this extension requires
guice-jmx.jar
.Helper methods for working with Guice.
-
Uses of Injector in com.google.inject
Methods in com.google.inject that return InjectorModifier and TypeMethodDescriptionInjector.createChildInjector
(Module... modules) Returns a new injector that inherits all state from this injector.Injector.createChildInjector
(Iterable<? extends 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.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.Injector.getParent()
Returns this injector's parent, ornull
if this is a top-level injector. -
Uses of Injector in com.google.inject.assistedinject
Fields in com.google.inject.assistedinject declared as InjectorModifier and TypeFieldDescriptionprivate Injector
FactoryProvider.injector
Deprecated.private Injector
FactoryProvider2.injector
the hosting injector, or null if we haven't been initialized yetMethods in com.google.inject.assistedinject with parameters of type InjectorModifier and TypeMethodDescriptionReturns the GuiceKey
for this parameter.(package private) void
FactoryProvider2.initialize
(Injector injector) At injector-creation time, we initialize the invocation handler.boolean
private boolean
private boolean
FactoryProvider.paramCanBeInjected
(Parameter parameter, Injector injector) Deprecated.(package private) void
FactoryProvider.setInjectorAndCheckUnboundParametersAreInjectable
(Injector injector) Deprecated. -
Uses of Injector in com.google.inject.grapher
Methods in com.google.inject.grapher with parameters of type InjectorModifier and TypeMethodDescriptionAbstractInjectorGrapher.getBindings
(Injector injector, Set<Key<?>> root) Returns the bindings for the root keys and their transitive dependencies.DefaultRootKeySetCreator.getRootKeys
(Injector injector) RootKeySetCreator.getRootKeys
(Injector injector) Returns the set of starting keys to graph.final void
final void
void
Graphs the guice dependency graph for the given injector using default starting keys.void
Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies. -
Uses of Injector in com.google.inject.internal
Classes in com.google.inject.internal that implement InjectorModifier and TypeClassDescription(package private) final class
DefaultInjector
implementation.(package private) static class
Injector
exposed to users inStage.TOOL
.Fields in com.google.inject.internal declared as InjectorModifier and TypeFieldDescriptionprivate final Injector
InternalInjectorCreator.ToolStageInjector.delegateInjector
(package private) final Injector
Indexer.injector
private final Injector
InjectorShell.InjectorFactory.injector
private Injector
PrivateElementsImpl.injector
Methods in com.google.inject.internal that return InjectorModifier and TypeMethodDescriptionInternalInjectorCreator.build()
InjectorImpl.createChildInjector
(Module... modules) InjectorImpl.createChildInjector
(Iterable<? extends Module> modules) InternalInjectorCreator.ToolStageInjector.createChildInjector
(Module... modules) InternalInjectorCreator.ToolStageInjector.createChildInjector
(Iterable<? extends Module> modules) InjectorShell.InjectorFactory.get()
InjectorShell.InjectorFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) PrivateElementsImpl.getInjector()
InjectorImpl.getParent()
InternalInjectorCreator.ToolStageInjector.getParent()
private Injector
InternalInjectorCreator.primaryInjector()
Returns the injector being constructed.Methods in com.google.inject.internal with parameters of type InjectorModifier and TypeMethodDescriptionvoid
PrivateElementsImpl.initInjector
(Injector injector) (package private) <T> Errors
Errors.missingImplementationWithHint
(Key<T> key, Injector injector) Within guice's core, allow for better missing binding messages(package private) boolean
RealMultibinder.BindingSelection.permitsDuplicates
(Injector injector) (package private) boolean
RealMultibinder.permitsDuplicates
(Injector injector) Constructors in com.google.inject.internal with parameters of type InjectorModifierConstructorDescription(package private)
private
InjectorFactory
(Injector injector) (package private)
ToolStageInjector
(Injector delegateInjector) -
Uses of Injector in com.google.inject.servlet
Fields in com.google.inject.servlet declared as InjectorMethods in com.google.inject.servlet that return InjectorModifier and TypeMethodDescriptionprotected abstract Injector
GuiceServletContextListener.getInjector()
Override this method to create (or otherwise obtain a reference to) your injector.Methods in com.google.inject.servlet with parameters of type InjectorModifier and TypeMethodDescriptionprivate FilterDefinition[]
ManagedFilterPipeline.collectFilterDefinitions
(Injector injector) Introspects the injector and collects all instances of boundList<FilterDefinition>
into a master list.private ServletDefinition[]
ManagedServletPipeline.collectServletDefinitions
(Injector injector) Introspects the injector and collects all instances of boundList<ServletDefinition>
into a master list.void
FilterDefinition.init
(javax.servlet.ServletContext servletContext, Injector injector, Set<javax.servlet.Filter> initializedSoFar) void
void
ServletDefinition.init
(javax.servlet.ServletContext servletContext, Injector injector, Set<javax.servlet.http.HttpServlet> initializedSoFar) Constructors in com.google.inject.servlet with parameters of type InjectorModifierConstructorDescriptionManagedFilterPipeline
(Injector injector, ManagedServletPipeline servletPipeline, Provider<javax.servlet.ServletContext> servletContext) ManagedServletPipeline
(Injector injector) -
Uses of Injector in com.google.inject.spi
Methods in com.google.inject.spi that return InjectorModifier and TypeMethodDescriptionPrivateElements.getInjector()
Returns the child injector that hosts these private elements, or null if the elements haven't been used to create an injector. -
Uses of Injector in com.google.inject.tools.jmx
Methods in com.google.inject.tools.jmx with parameters of type InjectorModifier and TypeMethodDescriptionstatic void
Registers all the bindings of an Injector with the platform MBean server.static void
Manager.manage
(MBeanServer server, String domain, Injector injector) Registers all the bindings of an Injector with the given MBean server. -
Uses of Injector in com.google.inject.util
Methods in com.google.inject.util with parameters of type InjectorModifier and TypeMethodDescription(package private) void
Providers.GuicifiedProviderWithDependencies.initialize
(Injector injector)