Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.grapher | |
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.servlet |
Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar . |
com.google.inject.spi |
Guice service provider interface
|
com.google.inject.tools.jmx |
JMX integration; this extension requires
guice-jmx.jar . |
Modifier and Type | Method and Description |
---|---|
Injector |
Injector.createChildInjector(Iterable<? extends Module> modules)
Returns a new injector that inherits all state from this injector.
|
Injector |
Injector.createChildInjector(Module... modules)
Returns a new injector that inherits all state from this injector.
|
static Injector |
Guice.createInjector(Iterable<? extends Module> modules)
Creates an injector for the given set of modules.
|
static Injector |
Guice.createInjector(Module... modules)
Creates an injector for the given set of modules.
|
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(Stage stage,
Module... modules)
Creates an injector for the given set of modules, in a given development
stage.
|
Injector |
Injector.getParent()
Returns this injector's parent, or
null if this is a top-level injector. |
Modifier and Type | Method and Description |
---|---|
Set<Key<?>> |
RootKeySetCreator.getRootKeys(Injector injector)
Returns the set of starting keys to graph.
|
Set<Key<?>> |
DefaultRootKeySetCreator.getRootKeys(Injector injector) |
void |
InjectorGrapher.graph(Injector injector)
Graphs the guice dependency graph for the given injector using default starting keys.
|
void |
AbstractInjectorGrapher.graph(Injector injector) |
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.
|
void |
AbstractInjectorGrapher.graph(Injector injector,
Set<Key<?>> root) |
Modifier and Type | Method and Description |
---|---|
Injector |
InternalInjectorCreator.build() |
Injector |
PrivateElementsImpl.getInjector() |
Modifier and Type | Method and Description |
---|---|
void |
PrivateElementsImpl.initInjector(Injector injector) |
Modifier and Type | Method and Description |
---|---|
protected abstract Injector |
GuiceServletContextListener.getInjector()
Override this method to create (or otherwise obtain a reference to) your
injector.
|
Constructor and Description |
---|
AbstractFilterPipeline(Injector injector,
AbstractServletPipeline servletPipeline,
Provider<javax.servlet.ServletContext> servletContext) |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static void |
Manager.manage(MBeanServer server,
String domain,
Injector injector)
Registers all the bindings of an Injector with the given MBean server.
|
static void |
Manager.manage(String domain,
Injector injector)
Registers all the bindings of an Injector with the platform MBean server.
|
Copyright © 2006–2016 Google, Inc.. All rights reserved.