Uses of Interface
com.google.inject.Injector
-
Packages that use Injector 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 com.google.inject.internal Guice (sounds like "juice")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.tools.jmx JMX integration; this extension requiresguice-jmx.jar.com.google.inject.util Helper methods for working with Guice. -
-
Uses of Injector in com.google.inject
Methods in com.google.inject that return Injector Modifier and Type Method Description InjectorInjector. createChildInjector(Module... modules)Returns a new injector that inherits all state from this injector.InjectorInjector. createChildInjector(java.lang.Iterable<? extends 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.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.InjectorInjector. getParent()Returns this injector's parent, ornullif this is a top-level injector. -
Uses of Injector in com.google.inject.assistedinject
Fields in com.google.inject.assistedinject declared as Injector Modifier and Type Field Description private InjectorFactoryProvider. injectorDeprecated.private InjectorFactoryProvider2. injectorthe hosting injector, or null if we haven't been initialized yetMethods in com.google.inject.assistedinject with parameters of type Injector Modifier and Type Method Description java.lang.ObjectParameter. getValue(Injector injector)Returns the GuiceKeyfor this parameter.(package private) voidFactoryProvider2. initialize(Injector injector)At injector-creation time, we initialize the invocation handler.booleanParameter. isBound(Injector injector)private booleanParameter. isBound(Injector injector, Key<?> key)private booleanFactoryProvider. paramCanBeInjected(Parameter parameter, Injector injector)Deprecated.(package private) voidFactoryProvider. setInjectorAndCheckUnboundParametersAreInjectable(Injector injector)Deprecated. -
Uses of Injector in com.google.inject.grapher
Methods in com.google.inject.grapher with parameters of type Injector Modifier and Type Method Description private java.lang.Iterable<Binding<?>>AbstractInjectorGrapher. getBindings(Injector injector, java.util.Set<Key<?>> root)Returns the bindings for the root keys and their transitive dependencies.java.util.Set<Key<?>>DefaultRootKeySetCreator. getRootKeys(Injector injector)java.util.Set<Key<?>>RootKeySetCreator. getRootKeys(Injector injector)Returns the set of starting keys to graph.voidAbstractInjectorGrapher. graph(Injector injector)voidAbstractInjectorGrapher. graph(Injector injector, java.util.Set<Key<?>> root)voidInjectorGrapher. graph(Injector injector)Graphs the guice dependency graph for the given injector using default starting keys.voidInjectorGrapher. graph(Injector injector, java.util.Set<Key<?>> root)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 Injector Modifier and Type Class Description (package private) classInjectorImplDefaultInjectorimplementation.(package private) static classInternalInjectorCreator.ToolStageInjectorInjectorexposed to users inStage.TOOL.Fields in com.google.inject.internal declared as Injector Modifier and Type Field Description private InjectorInternalInjectorCreator.ToolStageInjector. delegateInjector(package private) InjectorIndexer. injectorprivate InjectorInjectorShell.InjectorFactory. injectorprivate InjectorPrivateElementsImpl. injectorMethods in com.google.inject.internal that return Injector Modifier and Type Method Description InjectorInternalInjectorCreator. build()InjectorInjectorImpl. createChildInjector(Module... modules)InjectorInjectorImpl. createChildInjector(java.lang.Iterable<? extends Module> modules)InjectorInternalInjectorCreator.ToolStageInjector. createChildInjector(Module... modules)InjectorInternalInjectorCreator.ToolStageInjector. createChildInjector(java.lang.Iterable<? extends Module> modules)InjectorInjectorShell.InjectorFactory. get()InjectorInjectorShell.InjectorFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)InjectorPrivateElementsImpl. getInjector()InjectorInjectorImpl. getParent()InjectorInternalInjectorCreator.ToolStageInjector. getParent()private InjectorInternalInjectorCreator. primaryInjector()Returns the injector being constructed.Methods in com.google.inject.internal with parameters of type Injector Modifier and Type Method Description voidPrivateElementsImpl. initInjector(Injector injector)(package private) <T> ErrorsErrors. missingImplementationWithHint(Key<T> key, Injector injector)Within guice's core, allow for better missing binding messages(package private) booleanRealMultibinder.BindingSelection. permitsDuplicates(Injector injector)(package private) booleanRealMultibinder. permitsDuplicates(Injector injector)Constructors in com.google.inject.internal with parameters of type Injector Constructor Description Indexer(Injector injector)InjectorFactory(Injector injector)ToolStageInjector(Injector delegateInjector) -
Uses of Injector in com.google.inject.servlet
Fields in com.google.inject.servlet declared as Injector Modifier and Type Field Description private InjectorManagedFilterPipeline. injectorMethods in com.google.inject.servlet that return Injector Modifier and Type Method Description protected abstract InjectorGuiceServletContextListener. getInjector()Override this method to create (or otherwise obtain a reference to) your injector.Methods in com.google.inject.servlet with parameters of type Injector Modifier and Type Method Description private 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.voidFilterDefinition. init(javax.servlet.ServletContext servletContext, Injector injector, java.util.Set<javax.servlet.Filter> initializedSoFar)voidManagedServletPipeline. init(javax.servlet.ServletContext servletContext, Injector injector)voidServletDefinition. init(javax.servlet.ServletContext servletContext, Injector injector, java.util.Set<javax.servlet.http.HttpServlet> initializedSoFar)Constructors in com.google.inject.servlet with parameters of type Injector Constructor Description ManagedFilterPipeline(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 Injector Modifier and Type Method Description InjectorPrivateElements. 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 Injector Modifier and Type Method Description static voidManager. manage(java.lang.String domain, Injector injector)Registers all the bindings of an Injector with the platform MBean server.static voidManager. manage(javax.management.MBeanServer server, java.lang.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 Injector Modifier and Type Method Description (package private) voidProviders.GuicifiedProviderWithDependencies. initialize(Injector injector)
-