All Classes and Interfaces
Class
Description
Abstract injector grapher that builds the dependency graph but doesn't render it.
Parameters used to override default settings of the grapher.
Implements
and()
and or()
.A support class for
Module
s which reduces repetition and results in
a more readable configuration.Alias between two nodes.
Creator of node aliases.
See the EDSL examples at
Binder
.See the EDSL examples at
Binder
.See the EDSL examples at
Binder
.Arrow symbols that are available from Graphviz.
Annotates an injected parameter or field whose value comes from an argument to a factory method.
When used in tandem with
FactoryModuleBuilder
, constructors annotated with
@AssistedInject
indicate that multiple constructors can be injected, each with different
parameters.A binding for a factory created by FactoryModuleBuilder.
A visitor for the AssistedInject extension.
Details about how a method in an assisted inject factory will be assisted.
Annotation used by
BoundFieldModule
to indicate that a field should be bound to its
value using Guice.Collects configuration information (primarily bindings) which will be
used to create an
Injector
.A mapping from a key (type and optional annotation) to the strategy for getting instances of the
type.
Annotates annotations which are used for binding.
Edge that connects an interface to the type or instance that is bound to implement it.
Classification for what kind of binding this edge represents.
Visits each of the strategies used to scope an injection.
Visits each of the strategies used to find an instance to satisfy an injection.
Automatically creates Guice bindings for fields in an object annotated with
Bind
.Alternative to the Guice
Provider
that throws
a checked Exception.Annotates methods of a
Module
to create a
CheckedProvider
method binding that can throw exceptions.Allows @
ProvidesIntoMap
to specify a class map key.Enum for the "compass point" values used to control where edge
end points appear on the graph.
Thrown when a programming error such as a misplaced annotation, illegal binding, or unsupported
scope is found.
Binds to a constant value.
A binding to the constructor of a concrete clss.
A binding created from converting a bound instance to a new type.
Thrown when errors occur while creating a
Injector
.No-op visitor for subclassing.
No-op visitor for subclassing.
No-op visitor for subclassing.
Root key set creator that starts with all types that are not Guice internal types or the
Logger
type.A variable that can be resolved by an injector.
A combination of a
Dependency
and the source
where the dependency was bound.Edge from a class or
InjectionPoint
to the interface node that will satisfy the
dependency.A request to disable circular proxies.
Edge in a guice dependency graph.
Creator of graph edges to render.
Styles for edges.
A core component of a module or injector.
Exposes elements of a module so they can be inspected, validated or
rewritten
.Contains information about where and how an
element
was
bound.Visit elements.
Acccompanies a @
Provides
method annotation in a
private module to indicate that the provided binding is exposed.A binding to a key exposed from an enclosed private environment.
Provides a factory that combines the caller's arguments with injector-supplied values to
construct objects.
Deprecated.
Data object to encapsulate the attributes of Graphviz edges that we're
interested in drawing.
InjectorGrapher
implementation that writes out a Graphviz DOT
file of the graph.Module that provides classes needed by
GraphvizGrapher
.Data object to encapsulate the attributes of Graphviz nodes that we're
interested in drawing.
The entry point to the Guice framework.
Apply this filter in web.xml above all other filters (typically), to all requests where you plan
to use servlet scopes.
As of Guice 2.0 you can still use (your subclasses of)
GuiceServletContextListener
class as a logical place to create and configure your injector.Node for types that have
Dependency
s and are
bound to InterfaceNode
s.A pointer to the default implementation of a type.
Annotates members of your implementation class (constructors, methods
and fields) into which the
Injector
should inject values.Listens for injections into instances of type
I
.A constructor, field or method that can receive injections.
A request to inject the instance fields and methods of an instance.
Builds the graphs of objects that make up your application.
Guice injector grapher.
A binding to a single instance.
A binding to a single instance of a filter.
Node for instances.
A binding to a single instance of a servlet.
Node for an interface type that has been bound to an implementation class or instance.
Integrates Guice with JNDI.
Binding key consisting of an injection type and an optional annotation.
See the EDSL examples at
Binder
.A linked binding to a filter.
A binding to a linked key.
A linked binding to a servlet.
JMX interface to bindings.
Provides a JMX interface to Guice.
An API to bind multiple map entries separately, only to later inject them as
a complete map.
A binding for a MapBinder.
Allows users define customized key type annotations for map bindings by annotating an annotation
of a
Map
's key type.Returns
true
or false
for a given input.Matcher implementations.
Injects dependencies into the fields and methods on instances of type
T
.A lookup of the members injector for a type.
An error message and the context in which it occured.
A module contributes configuration information, typically interface
bindings, which will be used to create an
Injector
.Allows extensions to scan modules for annotated methods and bind those methods
as providers, similar to
@Provides
methods.Represents a call to
Binder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
in a module.Static utility methods for creating and working with instances of
Module
.See the EDSL example at
override()
.An API to bind multiple values separately, only to later inject them as a
complete collection.
A binding for a Multibinder.
Scans a module for annotations that signal multibindings, mapbindings, and optional bindings.
A visitor for the multibinder extension.
Annotates named things.
Utility methods for use with
@
Named
.Node in a guice dependency graph.
Creator of graph nodes.
ID of a node in the graph.
Type of node.
Enum for the shapes that are most interesting for Guice graphing.
Styles for nodes.
An API to bind optional values, optionally with a default value.
A binding for a OptionalBinder.
Thrown from
Provider.get()
when an attempt is made to access a scoped
object while the scope in question is not currently active.Interface for a service that returns Graphviz port IDs, used for naming the
rows in
ImplementationNode
-displaying GraphvizNode
s.Implementation of
PortIdFactory
.Returns a binder whose configuration information is hidden from its environment by default.
A private collection of elements that are hidden from the enclosing injector or module by
default.
A module whose configuration information is hidden from its environment by default.
A pointer to the default provider type for a type.
An object capable of providing instances of type
T
.A binding to a
Provider
that delegates to the binding for the provided type.A binding to a provider instance.
A binding to a provider key.
A lookup of the provider for a type.
Static utility methods for creating and working with instances of
Provider
.A provider with dependencies on other injected types.
A Provider that is part of an extension which supports a custom
BindingTargetVisitor.
Annotates methods of a
Module
to create a provider method binding.Annotates methods of a
Module
to add items to a Multibinder
.Annotates methods of a
Module
to add items to a Multibinder
.An @
Provides
binding or binding produced by a
ModuleAnnotatedMethodScanner
.A visitor for the @
Provides
bindings.Indicates that there was a runtime failure while providing an instance.
Listens for provisioning of objects.
Encapsulates a single act of provisioning.
Binds keys (picked using a Matcher) to a provision listener.
Apply this to field or parameters of type
Map<String, String[]>
when you want the HTTP request parameter map to be injected.Apply this to implementation classes when you want one instance per request.
Object that can be used to apply a request scope to a block of code.
Closeable subclass that does not throw any exceptions from close.
A request to require explicit @
Inject
annotations on constructors.A request to require exact binding annotations.
A request to require explicit bindings.
Creator of the default starting set of keys to graph.
A scope is a level of visibility that instances provided by Guice may have.
Annotates annotations which are used for scoping.
Registration of a scope annotation with the scope that implements it.
See the EDSL examples at
Binder
.Built-in scope implementations.
Exception thrown when there was a failure entering request scope.
Annotates a
GuiceFilter
that provides scope functionality, but
doesn't dispatch to ServletModule
bound servlets or filters.Configures the servlet scopes and creates bindings for the servlet API
objects so you can inject the request, response, session, etc.
See the EDSL examples at
ServletModule.configureServlets()
See the EDSL examples at
ServletModule.configureServlets()
A binding created by
ServletModule
.A visitor for the servlet extension.
Servlet scopes.
Apply this to implementation classes when you want one instance per session.
Reasonable implementation for
NameFactory
.Apply this to implementation classes when you want only one instance
(per
Injector
) to be reused for all injections for that binding.The stage we're running in.
A request to inject the static fields and methods of a type.
Allows @
ProvidesIntoMap
to specify a string map key.A version of @
Inject
designed for ThrowingProviders.Deprecated.
use
CheckedProvider
instead.Builds a binding for a
CheckedProvider
.Instructs an
Injector
running in Stage.TOOL
that a method should be injected.Converts constant string values to a different type.
Registration of type converters for matching target types.
Context of an injectable type encounter.
Listens for Guice to encounter injectable types.
Binds types (picked using a Matcher) to an type listener.
Represents a generic type
T
.Static methods for working with types.
An untargetted binding.
An enumeration of the available URI-pattern matching styles
FactoryModuleBuilder
instead.