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.grapher 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
. -
-
Uses of Injector in com.google.inject
Methods in com.google.inject that return Injector Modifier and Type Method Description Injector
Injector. createChildInjector(Module... modules)
Returns a new injector that inherits all state from this injector.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
Injector. getParent()
Returns this injector's parent, ornull
if this is a top-level injector. -
Uses of Injector in com.google.inject.grapher
Methods in com.google.inject.grapher with parameters of type Injector Modifier and Type Method Description Set<Key<?>>
DefaultRootKeySetCreator. getRootKeys(Injector injector)
Set<Key<?>>
RootKeySetCreator. getRootKeys(Injector injector)
Returns the set of starting keys to graph.void
AbstractInjectorGrapher. graph(Injector injector)
void
AbstractInjectorGrapher. graph(Injector injector, Set<Key<?>> root)
void
InjectorGrapher. graph(Injector injector)
Graphs the guice dependency graph for the given injector using default starting keys.void
InjectorGrapher. graph(Injector injector, 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.servlet
Methods in com.google.inject.servlet that return Injector Modifier and Type Method Description protected abstract Injector
GuiceServletContextListener. getInjector()
Override this method to create (or otherwise obtain a reference to) your injector. -
Uses of Injector in com.google.inject.spi
Methods in com.google.inject.spi that return Injector Modifier and Type Method Description Injector
PrivateElements. 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 void
Manager. manage(String domain, Injector injector)
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.
-