A B C D E F G H I J K L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractInjectorGrapher - Class in com.google.inject.grapher
-
Abstract injector grapher that builds the dependency graph but doesn't render it.
- AbstractInjectorGrapher() - Constructor for class com.google.inject.grapher.AbstractInjectorGrapher
- AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters) - Constructor for class com.google.inject.grapher.AbstractInjectorGrapher
- AbstractInjectorGrapher.GrapherParameters - Class in com.google.inject.grapher
-
Parameters used to override default settings of the grapher.
- AbstractMatcher<T> - Class in com.google.inject.matcher
-
Deprecated.This class used to be useful to avoid implementing
and()
andor()
yourself, but is no longer necessary now thatMatcher
implements these methods. - AbstractMatcher() - Constructor for class com.google.inject.matcher.AbstractMatcher
-
Deprecated.
- AbstractModule - Class in com.google.inject
-
AbstractModule is a helper class used to add bindings to the Guice injector.
- AbstractModule() - Constructor for class com.google.inject.AbstractModule
- acceptExtensionVisitor(BindingTargetVisitor<B, V>, ProviderInstanceBinding<? extends B>) - Method in interface com.google.inject.spi.ProviderWithExtensionVisitor
-
Instructs the extension determine if the visitor is an instance of a custom extension visitor, and if so, visit it using that method.
- acceptScopingVisitor(BindingScopingVisitor<V>) - Method in interface com.google.inject.Binding
-
Accepts a scoping visitor.
- acceptTargetVisitor(BindingTargetVisitor<? super T, V>) - Method in interface com.google.inject.Binding
-
Accepts a target visitor.
- acceptVisitor(ElementVisitor<R>) - Method in class com.google.inject.spi.InjectionRequest
- acceptVisitor(ElementVisitor<R>) - Method in class com.google.inject.spi.ProvisionListenerBinding
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.DisableCircularProxiesOption
- acceptVisitor(ElementVisitor<T>) - Method in interface com.google.inject.spi.Element
-
Accepts an element visitor.
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.InterceptorBinding
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.MembersInjectorLookup
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.Message
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.ProviderLookup
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.RequireAtInjectOnConstructorsOption
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.RequireExactBindingAnnotationsOption
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.RequireExplicitBindingsOption
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.ScopeBinding
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.StaticInjectionRequest
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.TypeConverterBinding
- acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.TypeListenerBinding
- ACTUAL - com.google.inject.multibindings.ProvidesIntoOptional.Type
-
Corresponds to
OptionalBinder.setBinding()
. - addBinding() - Method in class com.google.inject.multibindings.Multibinder
-
Returns a binding builder used to add a new element in the set.
- addBinding(K) - Method in class com.google.inject.multibindings.MapBinder
-
Returns a binding builder used to add a new entry in the map.
- addError(Message) - Method in class com.google.inject.AbstractModule
- addError(Message) - Method in interface com.google.inject.Binder
-
Records an error message to be presented to the user at a later time.
- addError(Message) - Method in class com.google.inject.PrivateModule
- addError(Message) - Method in interface com.google.inject.spi.TypeEncounter
-
Records an error message to be presented to the user at a later time.
- addError(String, Object...) - Method in class com.google.inject.AbstractModule
- addError(String, Object...) - Method in interface com.google.inject.Binder
-
Records an error message which will be presented to the user at a later time.
- addError(String, Object...) - Method in class com.google.inject.PrivateModule
- addError(String, Object...) - Method in interface com.google.inject.spi.TypeEncounter
-
Records an error message for type
I
which will be presented to the user at a later time. - addError(Throwable) - Method in class com.google.inject.AbstractModule
- addError(Throwable) - Method in interface com.google.inject.Binder
-
Records an exception, the full details of which will be logged, and the message of which will be presented to the user at a later time.
- addError(Throwable) - Method in class com.google.inject.PrivateModule
- addError(Throwable) - Method in interface com.google.inject.spi.TypeEncounter
-
Records an exception for type
I
, the full details of which will be logged, and the message of which will be presented to the user at a later time. - addField(String, String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- addFinder(Class<T>) - Method in class com.google.inject.persist.jpa.JpaPersistModule
-
Adds an interface to this module to use as a dynamic finder.
- addModules(Iterable<Object>) - Method in class com.google.inject.daggeradapter.DaggerAdapter.Builder
-
Adds modules (which can be classes annotated with
@dagger.Module
, or instances of those classes) which will be scanned for bindings. - addSubtitle(int, String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- afterInjection(I) - Method in interface com.google.inject.spi.InjectionListener
-
Invoked by Guice after it injects the fields and methods of instance.
- Alias - Class in com.google.inject.grapher
-
Alias between two nodes.
- Alias(NodeId, NodeId) - Constructor for class com.google.inject.grapher.Alias
- AliasCreator - Interface in com.google.inject.grapher
-
Creator of node aliases.
- and(Matcher<? super T>) - Method in class com.google.inject.matcher.AbstractMatcher
-
Deprecated.
- and(Matcher<? super T>) - Method in interface com.google.inject.matcher.Matcher
-
Returns a new matcher which returns
true
if both this and the given matcher returntrue
. - AnnotatedBindingBuilder<T> - Interface in com.google.inject.binder
-
See the EDSL examples at
Binder
. - AnnotatedConstantBindingBuilder - Interface in com.google.inject.binder
-
See the EDSL examples at
Binder
. - AnnotatedElementBuilder - Interface in com.google.inject.binder
-
See the EDSL examples at
Binder
. - annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedElementBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Annotation) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
- annotatedWith(Annotation) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedElementBuilder
-
See the EDSL examples at
Binder
. - annotatedWith(Class<? extends Annotation>) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
- annotatedWith(Class<? extends Annotation>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- annotationClasses() - Method in class com.google.inject.spi.ModuleAnnotatedMethodScanner
-
Returns the annotations this should scan for.
- any() - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches any input.
- applyTo(Binder) - Method in class com.google.inject.spi.DisableCircularProxiesOption
- applyTo(Binder) - Method in interface com.google.inject.spi.Element
-
Writes this module element to the given binder (optional operation).
- applyTo(Binder) - Method in interface com.google.inject.spi.ExposedBinding
-
Unsupported.
- applyTo(Binder) - Method in class com.google.inject.spi.InjectionRequest
- applyTo(Binder) - Method in class com.google.inject.spi.InterceptorBinding
- applyTo(Binder) - Method in class com.google.inject.spi.MembersInjectorLookup
- applyTo(Binder) - Method in class com.google.inject.spi.Message
- applyTo(Binder) - Method in class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- applyTo(Binder) - Method in class com.google.inject.spi.ProviderLookup
- applyTo(Binder) - Method in class com.google.inject.spi.ProvisionListenerBinding
- applyTo(Binder) - Method in class com.google.inject.spi.RequireAtInjectOnConstructorsOption
- applyTo(Binder) - Method in class com.google.inject.spi.RequireExactBindingAnnotationsOption
- applyTo(Binder) - Method in class com.google.inject.spi.RequireExplicitBindingsOption
- applyTo(Binder) - Method in class com.google.inject.spi.ScopeBinding
- applyTo(Binder) - Method in class com.google.inject.spi.StaticInjectionRequest
- applyTo(Binder) - Method in class com.google.inject.spi.TypeConverterBinding
- applyTo(Binder) - Method in class com.google.inject.spi.TypeListenerBinding
- arrayOf(Type) - Static method in class com.google.inject.util.Types
-
Returns an array type whose elements are all instances of
componentType
. - ArrowType - Enum in com.google.inject.grapher.graphviz
-
Arrow symbols that are available from Graphviz.
- asEagerSingleton() - Method in interface com.google.inject.binder.ScopedBindingBuilder
-
Instructs the
Injector
to eagerly initialize this singleton-scoped binding upon creation. - asModule() - Static method in class com.google.inject.multibindings.MultibindingsScanner
-
Deprecated.This functionality is now installed by default. All references/installations can be eliminated.
- assertThat(P) - Static method in class com.google.inject.testing.throwingproviders.CheckedProviderSubject
- Assisted - Annotation Type in com.google.inject.assistedinject
-
Annotates an injected parameter or field whose value comes from an argument to a factory method.
- AssistedInject - Annotation Type in com.google.inject.assistedinject
-
When used in tandem with
FactoryModuleBuilder
, constructors annotated with@AssistedInject
indicate that multiple constructors can be injected, each with different parameters. - AssistedInjectBinding<T> - Interface in com.google.inject.assistedinject
-
A binding for a factory created by FactoryModuleBuilder.
- AssistedInjectTargetVisitor<T,V> - Interface in com.google.inject.assistedinject
-
A visitor for the AssistedInject extension.
- AssistedMethod - Interface in com.google.inject.assistedinject
-
Details about how a method in an assisted inject factory will be assisted.
B
- begin() - Method in interface com.google.inject.persist.UnitOfWork
-
Starts a Unit Of Work.
- bind(Key<T>) - Method in class com.google.inject.AbstractModule
- bind(Key<T>) - Method in interface com.google.inject.Binder
-
See the EDSL examples at
Binder
. - bind(Key<T>) - Method in class com.google.inject.PrivateModule
- bind(TypeLiteral<T>) - Method in class com.google.inject.AbstractModule
- bind(TypeLiteral<T>) - Method in interface com.google.inject.Binder
-
See the EDSL examples at
Binder
. - bind(TypeLiteral<T>) - Method in class com.google.inject.PrivateModule
- bind(Class<P>, TypeLiteral<T>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder
- bind(Class<P>, Class<T>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder
- bind(Class<P>, Type) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder
-
Deprecated.
- bind(Class<T>) - Method in class com.google.inject.AbstractModule
-
See
Binder.bind(Class)
. - bind(Class<T>) - Method in interface com.google.inject.Binder
-
See the EDSL examples at
Binder
. - bind(Class<T>) - Method in class com.google.inject.PrivateModule
- Bind - Annotation Type in com.google.inject.testing.fieldbinder
-
Annotation used by
BoundFieldModule
to indicate that a field should be bound to its value using Guice. - bindAll(Binder, ListableBeanFactory) - Static method in class com.google.inject.spring.SpringIntegration
-
Binds all Spring beans from the given factory by name.
- bindConstant() - Method in class com.google.inject.AbstractModule
- bindConstant() - Method in interface com.google.inject.Binder
-
See the EDSL examples at
Binder
. - bindConstant() - Method in class com.google.inject.PrivateModule
- binder() - Method in class com.google.inject.AbstractModule
-
Gets direct access to the underlying
Binder
. - binder() - Method in class com.google.inject.PrivateModule
-
Returns the current binder.
- Binder - Interface in com.google.inject
-
Collects configuration information (primarily bindings) which will be used to create an
Injector
. - Binding<T> - Interface in com.google.inject
-
A mapping from a
Key
to the strategy for getting instances of the type. - BindingAnnotation - Annotation Type in com.google.inject
-
Annotates annotations which are used for binding.
- BindingEdge - Class in com.google.inject.grapher
-
Edge that connects an interface to the type or instance that is bound to implement it.
- BindingEdge(NodeId, NodeId, BindingEdge.Type) - Constructor for class com.google.inject.grapher.BindingEdge
- BindingEdge.Type - Enum in com.google.inject.grapher
-
Classification for what kind of binding this edge represents.
- BindingScopingVisitor<V> - Interface in com.google.inject.spi
-
Visits each of the strategies used to scope an injection.
- BindingSourceRestriction - Class in com.google.inject.spi
-
Contains abstractions for enforcing
RestrictedBindingSource
. - BindingTargetVisitor<T,V> - Interface in com.google.inject.spi
-
Visits each of the strategies used to find an instance to satisfy an injection.
- bindInterceptor(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in class com.google.inject.AbstractModule
- bindInterceptor(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in interface com.google.inject.Binder
-
Binds method interceptor[s] to methods matched by class and method matchers.
- bindInterceptor(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in class com.google.inject.PrivateModule
- bindInterceptor(Matcher<? super Method>, MethodInterceptor...) - Method in interface com.google.inject.spi.TypeEncounter
-
Binds method interceptor[s] to methods matched in type
I
and its supertypes. - bindListener(Matcher<? super Binding<?>>, ProvisionListener...) - Method in class com.google.inject.AbstractModule
- bindListener(Matcher<? super Binding<?>>, ProvisionListener...) - Method in interface com.google.inject.Binder
-
Registers listeners for provisioned objects.
- bindListener(Matcher<? super Binding<?>>, ProvisionListener...) - Method in class com.google.inject.PrivateModule
- bindListener(Matcher<? super TypeLiteral<?>>, TypeListener) - Method in class com.google.inject.AbstractModule
- bindListener(Matcher<? super TypeLiteral<?>>, TypeListener) - Method in interface com.google.inject.Binder
-
Registers a listener for injectable types.
- bindListener(Matcher<? super TypeLiteral<?>>, TypeListener) - Method in class com.google.inject.PrivateModule
- bindProperties(Binder, Map<String, String>) - Static method in class com.google.inject.name.Names
-
Creates a constant binding to
@Named(key)
for each entry inproperties
. - bindProperties(Binder, Properties) - Static method in class com.google.inject.name.Names
-
Creates a constant binding to
@Named(key)
for each property. - bindScope(Class<? extends Annotation>, Scope) - Method in class com.google.inject.AbstractModule
- bindScope(Class<? extends Annotation>, Scope) - Method in interface com.google.inject.Binder
-
Binds a scope to an annotation.
- bindScope(Class<? extends Annotation>, Scope) - Method in class com.google.inject.PrivateModule
- BOLD - com.google.inject.grapher.graphviz.EdgeStyle
- BOLD - com.google.inject.grapher.graphviz.NodeStyle
- BoundFieldModule - Class in com.google.inject.testing.fieldbinder
-
A Guice module that automatically adds Guice bindings into the injector for all
Bind
annotated fields of a specified object. - BoundFieldModule.BoundFieldInfo - Class in com.google.inject.testing.fieldbinder
-
Information about a field bound by
BoundFieldModule
. - BoundFieldModule.WithPermits - Class in com.google.inject.testing.fieldbinder
-
Wrapper of BoundFieldModule which enables attaching
@RestrictedBindingSource
permits to instances of it. - BOX - com.google.inject.grapher.graphviz.ArrowType
- BOX - com.google.inject.grapher.graphviz.NodeShape
- BOX_OPEN - com.google.inject.grapher.graphviz.ArrowType
- build() - Method in class com.google.inject.daggeradapter.DaggerAdapter.Builder
-
Returns a module that will configure bindings based on the modules and scanners.
- build() - Method in class com.google.inject.persist.jpa.JpaPersistOptions.Builder
- build(Key<F>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
- build(TypeLiteral<F>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - build(Class<F>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - builder() - Static method in class com.google.inject.daggeradapter.DaggerAdapter
- builder() - Static method in class com.google.inject.persist.jpa.JpaPersistOptions
-
Returns a builder to set options.
- Builder() - Constructor for class com.google.inject.daggeradapter.DaggerAdapter.Builder
C
- CENTER - com.google.inject.grapher.graphviz.CompassPoint
- check(GuiceInternal, List<Element>) - Static method in class com.google.inject.spi.BindingSourceRestriction
-
Returns all the restriction violations found on the given Module Elements, as error messages.
- CheckedProvider<T> - Interface in com.google.inject.throwingproviders
-
Alternative to the Guice
Provider
that throws a checked Exception. - checkedProviders() - Static method in class com.google.inject.testing.throwingproviders.CheckedProviderSubject
- CheckedProviders - Class in com.google.inject.throwingproviders
-
Static utility methods for creating and working with instances of
CheckedProvider
. - CheckedProviderSubject<T,P extends CheckedProvider<T>> - Class in com.google.inject.testing.throwingproviders
-
Truth
Subject
for use withCheckedProvider
classes. - CheckedProvides - Annotation Type in com.google.inject.throwingproviders
-
Annotates methods of a
Module
to create aCheckedProvider
method binding that can throw exceptions. - ClassMapKey - Annotation Type in com.google.inject.multibindings
-
Allows @
ProvidesIntoMap
to specify a class map key. - close() - Method in interface com.google.inject.servlet.RequestScoper.CloseableScope
- collectionOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
Collection
whose elements are of typeelementType
. - com.google.inject - package com.google.inject
-
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
- com.google.inject.assistedinject - package com.google.inject.assistedinject
-
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
. - com.google.inject.assistedinject.internal - package com.google.inject.assistedinject.internal
- com.google.inject.binder - package com.google.inject.binder
-
Interfaces which make up
Binder
's expression language. - com.google.inject.daggeradapter - package com.google.inject.daggeradapter
- com.google.inject.grapher - package com.google.inject.grapher
- com.google.inject.grapher.graphviz - package com.google.inject.grapher.graphviz
- com.google.inject.jndi - package com.google.inject.jndi
-
JNDI integration; this extension requires
guice-jndi.jar
. - com.google.inject.matcher - package com.google.inject.matcher
-
Used for matching things.
- com.google.inject.multibindings - package com.google.inject.multibindings
-
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
. - com.google.inject.name - package com.google.inject.name
-
Support for binding to string-based names.
- com.google.inject.persist - package com.google.inject.persist
-
Guice Persist: a lightweight persistence library for Guice; this extension requires
guice-persist.jar
. - com.google.inject.persist.finder - package com.google.inject.persist.finder
-
Dynamic Finder API for Guice Persist.
- com.google.inject.persist.jpa - package com.google.inject.persist.jpa
-
guice-persist's Java Persistence API (JPA) support.
- com.google.inject.servlet - package com.google.inject.servlet
-
Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar
. - com.google.inject.spi - package com.google.inject.spi
-
Guice service provider interface
- com.google.inject.spring - package com.google.inject.spring
-
Spring integration; this extension requires
guice-spring.jar
. - com.google.inject.testing.fieldbinder - package com.google.inject.testing.fieldbinder
- com.google.inject.testing.throwingproviders - package com.google.inject.testing.throwingproviders
- com.google.inject.throwingproviders - package com.google.inject.throwingproviders
-
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar
. - com.google.inject.tools.jmx - package com.google.inject.tools.jmx
-
JMX integration; this extension requires
guice-jmx.jar
. - com.google.inject.util - package com.google.inject.util
-
Helper methods for working with Guice.
- combine() - Static method in class com.google.inject.util.Modules
-
Deprecated.this method call is effectively a no-op, just remove it.
- combine(Module) - Static method in class com.google.inject.util.Modules
-
Deprecated.there's no need to "combine" one module; just install it directly.
- combine(Module...) - Static method in class com.google.inject.util.Modules
-
Returns a new module that installs all of
modules
. - combine(Iterable<? extends Module>) - Static method in class com.google.inject.util.Modules
-
Returns a new module that installs all of
modules
. - CompassPoint - Enum in com.google.inject.grapher.graphviz
-
Enum for the "compass point" values used to control where edge end points appear on the graph.
- ConfigurationException - Exception in com.google.inject
-
Thrown when a programming error such as a misplaced annotation, illegal binding, or unsupported scope is found.
- ConfigurationException(Iterable<Message>) - Constructor for exception com.google.inject.ConfigurationException
-
Creates a ConfigurationException containing
messages
. - configure() - Method in class com.google.inject.AbstractModule
-
Configures a
Binder
via the exposed methods. - configure() - Method in class com.google.inject.grapher.graphviz.GraphvizModule
- configure() - Method in class com.google.inject.persist.PersistModule
- configure() - Method in class com.google.inject.PrivateModule
-
Creates bindings and other configurations private to this module.
- configure() - Method in class com.google.inject.servlet.ServletModule
- configure() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.WithPermits
- configure(Binder) - Method in class com.google.inject.AbstractModule
- configure(Binder) - Method in interface com.google.inject.Module
-
Contributes bindings and other configurations for this module to
binder
. - configure(Binder) - Method in class com.google.inject.PrivateModule
- configure(Binder) - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule
- configurePersistence() - Method in class com.google.inject.persist.jpa.JpaPersistModule
- configurePersistence() - Method in class com.google.inject.persist.PersistModule
- configureServlets() - Method in class com.google.inject.servlet.ServletModule
-
Servlet Mapping EDSL
- ConstantBindingBuilder - Interface in com.google.inject.binder
-
Binds to a constant value.
- ConstructorBinding<T> - Interface in com.google.inject.spi
-
A binding to the constructor of a concrete class.
- containsElement(Element) - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns true if this MapBinder contains the given Element in order to build the map or uses the given Element in order to support building and injecting the map.
- containsElement(Element) - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns true if this Multibinder uses the given Element.
- containsElement(Element) - Method in interface com.google.inject.multibindings.OptionalBinderBinding
-
Returns true if this OptionalBinder contains the given Element in order to build the optional binding or uses the given Element in order to support building and injecting its data.
- contextDestroyed(ServletContextEvent) - Method in class com.google.inject.servlet.GuiceServletContextListener
- contextInitialized(ServletContextEvent) - Method in class com.google.inject.servlet.GuiceServletContextListener
- continueRequest(Callable<T>, Map<Key<?>, Object>) - Static method in class com.google.inject.servlet.ServletScopes
-
Deprecated.You probably want to use
transferRequest
instead - convert(String, TypeLiteral<?>) - Method in interface com.google.inject.spi.TypeConverter
-
Converts a string value.
- CONVERTED_CONSTANT - com.google.inject.grapher.BindingEdge.Type
-
Binding is to the interface for a constant of a different type.
- ConvertedConstantBinding<T> - Interface in com.google.inject.spi
-
A binding created from converting a bound instance to a new type.
- convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) - Method in class com.google.inject.AbstractModule
- convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) - Method in interface com.google.inject.Binder
-
Binds a type converter.
- convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) - Method in class com.google.inject.PrivateModule
- copy(NodeId) - Method in class com.google.inject.grapher.ImplementationNode
- copy(NodeId) - Method in class com.google.inject.grapher.InstanceNode
- copy(NodeId) - Method in class com.google.inject.grapher.InterfaceNode
- copy(NodeId) - Method in class com.google.inject.grapher.Node
-
Returns a copy of the node with a new ID.
- copy(NodeId, NodeId) - Method in class com.google.inject.grapher.BindingEdge
- copy(NodeId, NodeId) - Method in class com.google.inject.grapher.DependencyEdge
- copy(NodeId, NodeId) - Method in class com.google.inject.grapher.Edge
-
Returns a copy of the edge with new node IDs.
- create(Binder) - Static method in class com.google.inject.throwingproviders.ThrowingProviderBinder
- createAliases(Iterable<Binding<?>>) - Method in interface com.google.inject.grapher.AliasCreator
-
Returns aliases for the given dependency graph.
- createChildInjector(Module...) - Method in interface com.google.inject.Injector
-
Returns a new injector that inherits all state from this injector.
- createChildInjector(Iterable<? extends Module>) - Method in interface com.google.inject.Injector
-
Returns a new injector that inherits all state from this injector.
- createInjector(Module...) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules.
- createInjector(Stage, Module...) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules, in a given development stage.
- createInjector(Stage, Iterable<? extends Module>) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules, in a given development stage.
- createInjector(Iterable<? extends Module>) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules.
- CreationException - Exception in com.google.inject
-
Thrown when errors occur while creating a
Injector
. - CreationException(Collection<Message>) - Constructor for exception com.google.inject.CreationException
-
Creates a CreationException containing
messages
. - CROW - com.google.inject.grapher.graphviz.ArrowType
- currentStage() - Method in class com.google.inject.AbstractModule
- currentStage() - Method in interface com.google.inject.Binder
-
Gets the current stage.
- currentStage() - Method in class com.google.inject.PrivateModule
D
- DaggerAdapter - Class in com.google.inject.daggeradapter
-
Adapts classes annotated with
@dagger.Module
such that their@dagger.Provides
methods can be properly invoked by Guice to perform their provision operations. - DaggerAdapter.Builder - Class in com.google.inject.daggeradapter
-
Builder for setting configuration options on DaggerAdapter.
- DASHED - com.google.inject.grapher.graphviz.EdgeStyle
- DASHED - com.google.inject.grapher.graphviz.NodeStyle
- DEFAULT - com.google.inject.multibindings.ProvidesIntoOptional.Type
-
Corresponds to
OptionalBinder.setDefault()
. - DefaultBindingScopingVisitor<V> - Class in com.google.inject.spi
-
No-op visitor for subclassing.
- DefaultBindingScopingVisitor() - Constructor for class com.google.inject.spi.DefaultBindingScopingVisitor
- DefaultBindingTargetVisitor<T,V> - Class in com.google.inject.spi
-
No-op visitor for subclassing.
- DefaultBindingTargetVisitor() - Constructor for class com.google.inject.spi.DefaultBindingTargetVisitor
- DefaultElementVisitor<V> - Class in com.google.inject.spi
-
No-op visitor for subclassing.
- DefaultElementVisitor() - Constructor for class com.google.inject.spi.DefaultElementVisitor
- DefaultRootKeySetCreator - Class in com.google.inject.grapher
-
Root key set creator that starts with all types that are not Guice internal types or the
Logger
type. - DefaultRootKeySetCreator() - Constructor for class com.google.inject.grapher.DefaultRootKeySetCreator
- Dependency<T> - Class in com.google.inject.spi
-
A variable that can be resolved by an injector.
- DependencyEdge - Class in com.google.inject.grapher
-
Edge from a class or
InjectionPoint
to the interface node that will satisfy the dependency. - DependencyEdge(NodeId, NodeId, InjectionPoint) - Constructor for class com.google.inject.grapher.DependencyEdge
- destroy() - Method in class com.google.inject.persist.PersistFilter
- destroy() - Method in class com.google.inject.servlet.GuiceFilter
- DEVELOPMENT - com.google.inject.Stage
-
We want fast startup times at the expense of runtime performance and some up front error checking.
- DIAGONALS - com.google.inject.grapher.graphviz.NodeStyle
- DIAMOND - com.google.inject.grapher.graphviz.ArrowType
- DIAMOND_OPEN - com.google.inject.grapher.graphviz.ArrowType
- disableCircularProxies() - Method in interface com.google.inject.Binder
-
Prevents Guice from injecting dependencies that form a cycle, unless broken by a
Provider
. - disableCircularProxiesModule() - Static method in class com.google.inject.util.Modules
-
Returns a module that will configure the injector to disable circular proxies.
- DisableCircularProxiesOption - Class in com.google.inject.spi
-
A request to disable circular proxies.
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.google.inject.persist.PersistFilter
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.google.inject.servlet.GuiceFilter
- DOT - com.google.inject.grapher.graphviz.ArrowType
- DOT_OPEN - com.google.inject.grapher.graphviz.ArrowType
- DOTTED - com.google.inject.grapher.graphviz.EdgeStyle
- DOTTED - com.google.inject.grapher.graphviz.NodeStyle
- DynamicFinder - Class in com.google.inject.persist.finder
-
Utility that helps you introspect dynamic finder methods.
- DynamicFinder(Method) - Constructor for class com.google.inject.persist.finder.DynamicFinder
E
- EAST - com.google.inject.grapher.graphviz.CompassPoint
- Edge - Class in com.google.inject.grapher
-
Edge in a guice dependency graph.
- Edge(NodeId, NodeId) - Constructor for class com.google.inject.grapher.Edge
- EdgeCreator - Interface in com.google.inject.grapher
-
Creator of graph edges to render.
- EdgeStyle - Enum in com.google.inject.grapher.graphviz
-
Styles for edges.
- Element - Interface in com.google.inject.spi
-
A core component of a module or injector.
- Elements - Class in com.google.inject.spi
-
Exposes elements of a module so they can be inspected, validated or
rewritten
. - Elements() - Constructor for class com.google.inject.spi.Elements
- ElementSource - Class in com.google.inject.spi
-
Contains information about where and how an
element
was bound. - ElementVisitor<V> - Interface in com.google.inject.spi
-
Visit elements.
- ELLIPSE - com.google.inject.grapher.graphviz.NodeShape
- EMPTY_MODULE - Static variable in class com.google.inject.util.Modules
- end() - Method in interface com.google.inject.persist.UnitOfWork
-
Declares an end to the current Unit of Work.
- Enhanced - Class in com.google.inject.util
-
Utilities for checking if classes are enhanced and/or getting the original un-enhanced class.
- equals(Object) - Method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- equals(Object) - Method in class com.google.inject.grapher.BindingEdge
- equals(Object) - Method in class com.google.inject.grapher.DependencyEdge
- equals(Object) - Method in class com.google.inject.grapher.Edge
- equals(Object) - Method in class com.google.inject.grapher.ImplementationNode
- equals(Object) - Method in class com.google.inject.grapher.InstanceNode
- equals(Object) - Method in class com.google.inject.grapher.InterfaceNode
- equals(Object) - Method in class com.google.inject.grapher.Node
- equals(Object) - Method in class com.google.inject.grapher.NodeId
- equals(Object) - Method in class com.google.inject.Key
- equals(Object) - Method in class com.google.inject.multibindings.MapBinder
- equals(Object) - Method in class com.google.inject.multibindings.Multibinder
- equals(Object) - Method in class com.google.inject.multibindings.OptionalBinder
- equals(Object) - Method in class com.google.inject.spi.Dependency
- equals(Object) - Method in class com.google.inject.spi.ErrorDetail
- equals(Object) - Method in class com.google.inject.spi.InjectionPoint
- equals(Object) - Method in class com.google.inject.spi.InjectionRequest
- equals(Object) - Method in class com.google.inject.spi.MembersInjectorLookup
- equals(Object) - Method in class com.google.inject.spi.Message
- equals(Object) - Method in class com.google.inject.spi.ProviderLookup
- equals(Object) - Method in class com.google.inject.spi.StaticInjectionRequest
- equals(Object) - Method in class com.google.inject.TypeLiteral
- ERROR - com.google.inject.RestrictedBindingSource.RestrictionLevel
- ErrorDetail<SelfT extends ErrorDetail<SelfT>> - Class in com.google.inject.spi
-
Details about a single Guice error and supports formatting itself in the context of other Guice errors.
- ErrorDetail(String, List<Object>, Throwable) - Constructor for class com.google.inject.spi.ErrorDetail
- exemptModules() - Method in annotation type com.google.inject.RestrictedBindingSource
-
Exempt modules whose fully qualified class names match this regex.
- explanation() - Method in annotation type com.google.inject.RestrictedBindingSource
-
Explanation of why binding this target type is restricted.
- expose(Key<?>) - Method in interface com.google.inject.PrivateBinder
-
Makes the binding for
key
available to the enclosing environment - expose(Key<T>) - Method in class com.google.inject.PrivateModule
-
Makes the binding for
key
available to other modules and the injector. - expose(TypeLiteral<?>) - Method in interface com.google.inject.PrivateBinder
-
Makes a binding for
type
available to the enclosing environment. - expose(TypeLiteral<?>) - Method in class com.google.inject.PrivateModule
-
Makes a binding for
type
available to other modules and the injector. - expose(Class<?>) - Method in interface com.google.inject.PrivateBinder
-
Makes a binding for
type
available to the enclosing environment. - expose(Class<?>) - Method in class com.google.inject.PrivateModule
-
Makes a binding for
type
available to other modules and the injector. - Exposed - Annotation Type in com.google.inject
-
Accompanies a @
Provides
method annotation in a private module to indicate that the provided binding is exposed. - ExposedBinding<T> - Interface in com.google.inject.spi
-
A binding to a key exposed from an enclosed private environment.
- EXTERIOR_SIDE - com.google.inject.grapher.graphviz.CompassPoint
F
- FactoryModuleBuilder - Class in com.google.inject.assistedinject
-
Provides a factory that combines the caller's arguments with injector-supplied values to construct objects.
- FactoryModuleBuilder() - Constructor for class com.google.inject.assistedinject.FactoryModuleBuilder
- FactoryProvider<F> - Class in com.google.inject.assistedinject
-
Deprecated.use
FactoryModuleBuilder
instead. - FILLED - com.google.inject.grapher.graphviz.NodeStyle
- filter(Predicate<Method>) - Method in class com.google.inject.daggeradapter.DaggerAdapter.Builder
-
Limit the adapter to a subset of
methods
from@dagger.Module
annotated classes which satisfy thepredicate
. - filter(Iterable<String>) - Method in class com.google.inject.servlet.ServletModule
- filter(String, String...) - Method in class com.google.inject.servlet.ServletModule
- filterRegex(Iterable<String>) - Method in class com.google.inject.servlet.ServletModule
- filterRegex(String, String...) - Method in class com.google.inject.servlet.ServletModule
- findBindingsByType(TypeLiteral<T>) - Method in interface com.google.inject.Injector
-
Returns all explicit bindings for
type
. - Finder - Annotation Type in com.google.inject.persist.finder
-
Marks a method stub as a dynamic finder.
- finish() - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- FirstResult - Annotation Type in com.google.inject.persist.finder
-
Annotate any dynamic finder method's integer argument with this to pass in the index of the first result in the result set you are interested in.
- forConstructor(Constructor<T>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the specified constructor.
- forConstructor(Constructor<T>, TypeLiteral<? extends T>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the specified constructor of
type
. - forConstructorOf(TypeLiteral<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the injectable constructor of
type
. - forConstructorOf(TypeLiteral<?>, boolean) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the injectable constructor of
type
. - forConstructorOf(Class<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the injectable constructor of
type
. - forInjectionPoints(Set<InjectionPoint>) - Static method in class com.google.inject.spi.Dependency
-
Returns the dependencies from the given injection points.
- forInstanceMethodsAndFields(TypeLiteral<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns all instance method and field injection points on
type
. - forInstanceMethodsAndFields(Class<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns all instance method and field injection points on
type
. - format(int, List<ErrorDetail<?>>, Formatter) - Method in class com.google.inject.spi.ErrorDetail
-
Formats this error along with other errors that are mergeable with this error.
- formatDetail(List<ErrorDetail<?>>, Formatter) - Method in class com.google.inject.spi.ErrorDetail
-
Formats the detail of this error message along with other errors that are mergeable with this error.
- forMethod(Method, TypeLiteral<T>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns a new injection point for the specified method of
type
. - forModule(Module) - Static method in class com.google.inject.throwingproviders.ThrowingProviderBinder
-
Returns a module that installs @
CheckedProvides
methods. - forStaticMethodsAndFields(TypeLiteral<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns all static method and field injection points on
type
. - forStaticMethodsAndFields(Class<?>) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns all static method and field injection points on
type
. - from(Object...) - Static method in class com.google.inject.daggeradapter.DaggerAdapter
-
Creates a new
DaggerAdapter
fromdaggerModuleObjects
. - from(Method) - Static method in class com.google.inject.persist.finder.DynamicFinder
-
Returns some metadata if the method is annotated
@Finder
or null. - fromJndi(Class<T>, String) - Static method in class com.google.inject.jndi.JndiIntegration
-
Creates a provider which looks up objects in JNDI using the given name.
- fromSpring(Class<T>, String) - Static method in class com.google.inject.spring.SpringIntegration
-
Creates a provider which looks up objects from Spring using the given name.
G
- get() - Method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- get() - Method in interface com.google.inject.Provider
-
Provides an instance of
T
. - get() - Method in interface com.google.inject.throwingproviders.CheckedProvider
- get() - Method in interface com.google.inject.throwingproviders.ThrowingProvider
-
Deprecated.
- get(Key<T>) - Static method in class com.google.inject.spi.Dependency
-
Returns a new dependency that is not attached to an injection point.
- get(TypeLiteral<T>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(TypeLiteral<T>, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get(TypeLiteral<T>, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- get(Class<T>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(Class<T>) - Static method in class com.google.inject.TypeLiteral
-
Gets type literal for the given
Class
instance. - get(Class<T>, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get(Class<T>, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- get(Type) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(Type) - Static method in class com.google.inject.TypeLiteral
-
Gets type literal for the given
Type
instance. - get(Type, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get(Type, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- getActualBinding() - Method in interface com.google.inject.multibindings.OptionalBinderBinding
-
Returns the actual binding (set by
OptionalBinder.setBinding()
) or null if not set. - getAliasCreator() - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- getAllBindings() - Method in interface com.google.inject.Injector
-
Returns a snapshot of this injector's bindings, both explicit and just-in-time.
- getAllMembersInjectorInjectionPoints() - Method in interface com.google.inject.Injector
-
Returns the injection points created for calls to
Injector.getMembersInjector(com.google.inject.TypeLiteral<T>)
(either directly or indirectly, e.g. - getAlternateKeys() - Method in interface com.google.inject.multibindings.OptionalBinderBinding
-
Returns the keys of other bindings that represent this OptionalBinder.
- getAlternateMapKeys() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns the keys of other bindings that represent this map.
- getAlternateSetKeys() - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns the keys of other bindings that represent this set.
- getAnnotation() - Method in class com.google.inject.Key
-
Gets the annotation instance if available.
- getAnnotation() - Method in interface com.google.inject.spi.ProvidesMethodBinding
-
Returns the annotation that caused this binding to be created.
- getAnnotationName(Key<?>) - Method in interface com.google.inject.grapher.NameFactory
- getAnnotationName(Key<?>) - Method in class com.google.inject.grapher.ShortNameFactory
- getAnnotations(Field) - Static method in class com.google.inject.spi.InjectionPoint
-
Returns all the annotations on a field.
- getAnnotationType() - Method in class com.google.inject.Key
-
Gets the annotation type.
- getAnnotationType() - Method in class com.google.inject.spi.ScopeBinding
- getArrowHead() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getArrowString(List<ArrowType>) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- getArrowTail() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getAssistedMethods() - Method in interface com.google.inject.assistedinject.AssistedInjectBinding
-
Returns an
AssistedMethod
for each method in the factory. - getAutoBeginWorkOnEntityManagerCreation() - Method in class com.google.inject.persist.jpa.JpaPersistOptions
-
Returns true if the work unit should automatically begin when the EntityManager is created, if it hasn't already begun.
- getBindAnnotation() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.BoundFieldInfo
-
The @
Bind
annotation which is present on the field. - getBinding() - Method in class com.google.inject.spi.ProvisionListener.ProvisionInvocation
-
Returns the Binding this is provisioning.
- getBinding(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the binding for the given injection key.
- getBinding(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the binding for the given type.
- getBindingMatcher() - Method in class com.google.inject.spi.ProvisionListenerBinding
-
Returns the binding matcher which chooses which bindings the listener should be notified of.
- getBindings() - Method in interface com.google.inject.Injector
-
Returns this injector's explicit bindings.
- getBoundFields() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule
-
Returns information about the fields bound by this module.
- getBoundKey() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.BoundFieldInfo
-
The key this field will bind to.
- getCause() - Method in class com.google.inject.spi.ErrorDetail
- getCause() - Method in class com.google.inject.spi.Message
-
Returns the throwable that caused this message, or
null
if this message was not caused by a throwable. - getClassMatcher() - Method in class com.google.inject.spi.InterceptorBinding
- getClassName(Key<?>) - Method in interface com.google.inject.grapher.NameFactory
- getClassName(Key<?>) - Method in class com.google.inject.grapher.ShortNameFactory
- getConstructor() - Method in interface com.google.inject.spi.ConstructorBinding
-
Gets the constructor this binding injects.
- getDeclaringSource() - Method in class com.google.inject.spi.ElementSource
-
Returns a single location in source code that defines the element.
- getDeclaringType() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the generic type that defines this injection point.
- getDefaultBinding() - Method in interface com.google.inject.multibindings.OptionalBinderBinding
-
Returns the default binding (set by
OptionalBinder.setDefault()
) if one exists or null if no default binding is set. - getDelegate() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Returns the delegate members injector, or
null
if it has not yet been initialized. - getDelegate() - Method in class com.google.inject.spi.ProviderLookup
-
Returns the delegate provider, or
null
if it has not yet been initialized. - getDependencies() - Method in interface com.google.inject.assistedinject.AssistedMethod
-
Returns all non-assisted dependencies required to construct and inject the implementation.
- getDependencies() - Method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- getDependencies() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns a singleton set containing only the converted key.
- getDependencies() - Method in interface com.google.inject.spi.HasDependencies
-
Returns the known dependencies for this type.
- getDependencies() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the dependencies for this injection point.
- getDependency() - Method in class com.google.inject.spi.ProviderLookup
- getEdgeAttributes(GraphvizEdge) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- getEdgeCreator() - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- getEdgeEndPoint(String, String, CompassPoint) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- getEdges(Iterable<Binding<?>>) - Method in interface com.google.inject.grapher.EdgeCreator
-
Returns edges for the given dependency graph.
- getElements() - Method in interface com.google.inject.Injector
-
Returns the elements that make up this injector.
- getElements() - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns all bindings that make up the set.
- getElements() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the configuration information in this private environment.
- getElements(Module...) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by
modules
. - getElements(Stage, Module...) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by
modules
. - getElements(Stage, Iterable<? extends Module>) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by
modules
. - getElements(Iterable<? extends Module>) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by
modules
. - getElementTypeLiteral() - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns the TypeLiteral that describes the type of elements in the set.
- getEnclosingInstance() - Method in interface com.google.inject.spi.ProvidesMethodBinding
-
Returns the instance of the object the method is defined in.
- getEntries() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns all entries in the Map.
- getEntries(Iterable<? extends Element>) - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Similar to
MapBinderBinding.getEntries()
, but can be used on a MapBinderBinding retrieved fromElements.getElements(com.google.inject.Module...)
. - getErrorDetail() - Method in class com.google.inject.spi.Message
-
Returns details about this error message.
- getErrorIdentifier() - Method in class com.google.inject.spi.ErrorDetail
-
Returns an optional string identifier for this error.
- getErrorMessages() - Method in exception com.google.inject.ConfigurationException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception com.google.inject.CreationException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception com.google.inject.ProvisionException
-
Returns messages for the errors that caused this exception.
- getExceptionTypes(Member) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic exception types thrown by
constructor
. - getExistingBinding(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the binding if it already exists, or null if does not exist.
- getExposedKeys() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the unique exposed keys for these private elements.
- getExposedSource(Key<?>) - Method in interface com.google.inject.spi.PrivateElements
-
Returns an arbitrary object containing information about the "place" where this key was exposed.
- getFactoryMethod() - Method in interface com.google.inject.assistedinject.AssistedMethod
-
Returns the factory method that is being assisted.
- getField() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.BoundFieldInfo
-
The field itself.
- getFields() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getFieldType() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.BoundFieldInfo
-
The actual type of the field.
- getFieldType(Field) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic type of
field
. - getFileString(StackTraceElement) - Method in class com.google.inject.grapher.ShortNameFactory
- getFilterInstance() - Method in interface com.google.inject.servlet.InstanceFilterBinding
-
Returns the filter instance that will be used.
- getFromId() - Method in class com.google.inject.grapher.Alias
- getFromId() - Method in class com.google.inject.grapher.Edge
- getGraphAttributes() - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- getHeadCompassPoint() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getHeaderBackgroundColor() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getHeaderTextColor() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getHeadNodeId() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getHeadPortId() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getId() - Method in class com.google.inject.grapher.Node
- getIdentifier() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getImplementationConstructor() - Method in interface com.google.inject.assistedinject.AssistedMethod
-
Returns the constructor that will be used to construct instances of the implementation.
- getImplementationType() - Method in interface com.google.inject.assistedinject.AssistedMethod
-
Returns the implementation type that will be created when the method is used.
- getInitParams() - Method in interface com.google.inject.servlet.ServletModuleBinding
-
Returns any context params supplied when creating the binding.
- getInjectableMembers() - Method in interface com.google.inject.spi.ConstructorBinding
-
Returns all instance method and field injection points on
type
. - getInjectionPoint() - Method in class com.google.inject.grapher.DependencyEdge
- getInjectionPoint() - Method in class com.google.inject.spi.Dependency
-
Returns the injection point to which this dependency belongs, or null if this dependency isn't attached to a particular injection point.
- getInjectionPoints() - Method in class com.google.inject.spi.InjectionRequest
-
Returns the instance methods and fields of
instance
that will be injected to fulfill this request. - getInjectionPoints() - Method in interface com.google.inject.spi.InstanceBinding
-
Returns the field and method injection points of the instance, injected at injector-creation time only.
- getInjectionPoints() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Returns the instance methods and fields that will be injected to fulfill this request.
- getInjectionPoints() - Method in interface com.google.inject.spi.ProviderInstanceBinding
-
Returns the field and method injection points of the provider, injected at injector-creation time only.
- getInjectionPoints() - Method in class com.google.inject.spi.StaticInjectionRequest
-
Returns the static methods and fields of
type
that will be injected to fulfill this request. - getInjector() - Method in class com.google.inject.servlet.GuiceServletContextListener
-
Override this method to create (or otherwise obtain a reference to) your injector.
- getInjector() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the child injector that hosts these private elements, or null if the elements haven't been used to create an injector.
- getInstance() - Method in class com.google.inject.grapher.InstanceNode
- getInstance() - Method in class com.google.inject.spi.InjectionRequest
-
Returns the instance that injection is being requested on.
- getInstance() - Method in interface com.google.inject.spi.InstanceBinding
-
Returns the user-supplied instance.
- getInstance() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule
-
Returns the the object originally passed to
BoundFieldModule.of(java.lang.Object)
). - getInstance(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the appropriate instance for the given injection key; equivalent to
getProvider(key).get()
. - getInstance(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the appropriate instance for the given injection type; equivalent to
getProvider(type).get()
. - getInstanceName(Object) - Method in interface com.google.inject.grapher.NameFactory
- getInstanceName(Object) - Method in class com.google.inject.grapher.ShortNameFactory
- getInterceptors() - Method in class com.google.inject.spi.InterceptorBinding
- getKey() - Method in interface com.google.inject.assistedinject.AssistedInjectBinding
-
Returns the
Key
for the factory binding. - getKey() - Method in interface com.google.inject.Binding
-
Returns the key for this binding.
- getKey() - Method in class com.google.inject.grapher.NodeId
- getKey() - Method in interface com.google.inject.multibindings.OptionalBinderBinding
-
Returns the
Key
for this binding. - getKey() - Method in class com.google.inject.spi.Dependency
-
Returns the key to the binding that satisfies this dependency.
- getKey() - Method in class com.google.inject.spi.ProviderLookup
- getKey() - Method in interface com.google.inject.spi.ProvidesMethodBinding
-
Returns the key of the binding.
- getKey() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
-
Gets the binding key.
- getKeyTypeLiteral() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns the TypeLiteral describing the keys of the map.
- getLearnMoreLink() - Method in class com.google.inject.spi.ErrorDetail
-
Returns an optional link to additional documentation about this error to be included in the formatted error message.
- getLinkedKey() - Method in interface com.google.inject.servlet.LinkedFilterBinding
-
Returns the key used to lookup the filter instance.
- getLinkedKey() - Method in interface com.google.inject.servlet.LinkedServletBinding
-
Returns the key used to lookup the servlet instance.
- getLinkedKey() - Method in interface com.google.inject.spi.LinkedKeyBinding
-
Returns the linked key used to resolve injections.
- getListener() - Method in class com.google.inject.spi.TypeListenerBinding
-
Returns the registered listener.
- getListeners() - Method in class com.google.inject.spi.ProvisionListenerBinding
-
Returns the registered listeners.
- getMapKey() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns the
Key
for the map. - getMember() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the injected constructor, field, or method.
- getMemberName(Member) - Method in interface com.google.inject.grapher.NameFactory
- getMemberName(Member) - Method in class com.google.inject.grapher.ShortNameFactory
- getMembers() - Method in class com.google.inject.grapher.ImplementationNode
- getMembers() - Method in class com.google.inject.grapher.InstanceNode
- getMembersInjector() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Returns the looked up members injector.
- getMembersInjector(TypeLiteral<T>) - Method in class com.google.inject.AbstractModule
- getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.Binder
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.Injector
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMembersInjector(TypeLiteral<T>) - Method in class com.google.inject.PrivateModule
- getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMembersInjector(Class<T>) - Method in class com.google.inject.AbstractModule
- getMembersInjector(Class<T>) - Method in interface com.google.inject.Binder
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMembersInjector(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMembersInjector(Class<T>) - Method in class com.google.inject.PrivateModule
- getMembersInjector(Class<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the members injector used to inject dependencies into methods and fields on instances of the given type
T
. - getMessage() - Method in exception com.google.inject.ConfigurationException
- getMessage() - Method in exception com.google.inject.CreationException
- getMessage() - Method in exception com.google.inject.ProvisionException
- getMessage() - Method in class com.google.inject.spi.ErrorDetail
- getMessage() - Method in class com.google.inject.spi.Message
-
Gets the error message text.
- getMethod() - Method in interface com.google.inject.spi.ProvidesMethodBinding
-
Returns the method this binding uses.
- getMethodInterceptors() - Method in interface com.google.inject.spi.ConstructorBinding
-
Returns the interceptors applied to each method, in the order that they will be applied.
- getMethodMatcher() - Method in class com.google.inject.spi.InterceptorBinding
- getMethodString(Method) - Method in class com.google.inject.grapher.ShortNameFactory
- getMissingImplementationSuggestion(GuiceInternal, Key<?>) - Static method in class com.google.inject.spi.BindingSourceRestriction
-
Returns a suggestion for how a restricted binding should be created in case it's missing.
- getModule(Iterable<? extends Element>) - Static method in class com.google.inject.spi.Elements
-
Returns the module composed of
elements
. - getModuleClassNames() - Method in class com.google.inject.spi.ElementSource
-
Returns the class names of modules involved in creating this
Element
. - getNodeAttributes(GraphvizNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- getNodeCreator() - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- getNodeId() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getNodeLabel(GraphvizNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
-
Creates the "label" for a node.
- getNodes(Iterable<Binding<?>>) - Method in interface com.google.inject.grapher.NodeCreator
-
Returns nodes for the given dependency graph.
- getOriginalElementSource() - Method in class com.google.inject.spi.ElementSource
-
Returns the
ElementSource
of the element this was created or copied from. - getParameterIndex() - Method in class com.google.inject.spi.Dependency
-
Returns the index of this dependency in the injection point's parameter list, or
-1
if this dependency does not belong to a parameter list. - getParameterTypes(Member) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic parameter types of
methodOrConstructor
. - getParent() - Method in interface com.google.inject.Injector
-
Returns this injector's parent, or
null
if this is a top-level injector. - getPartialValue() - Method in exception com.google.inject.ConfigurationException
-
Returns a value that was only partially computed due to this exception.
- getPattern() - Method in interface com.google.inject.servlet.ServletModuleBinding
-
Returns the pattern used to match against the binding.
- getPortId(Member) - Method in interface com.google.inject.grapher.graphviz.PortIdFactory
- getPortId(Member) - Method in class com.google.inject.grapher.graphviz.PortIdFactoryImpl
- getPrivateElements() - Method in interface com.google.inject.spi.ExposedBinding
-
Returns the enclosed environment that holds the original binding.
- getProvidedKey() - Method in interface com.google.inject.spi.ProviderBinding
-
Returns the key whose binding is used to
provide instances
. - getProvider() - Method in interface com.google.inject.Binding
-
Returns the scoped provider guice uses to fulfill requests for this binding.
- getProvider() - Method in class com.google.inject.spi.ProviderLookup
-
Returns the looked up provider.
- getProvider() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
-
Gets the provider to which this binding is bound.
- getProvider(Key<T>) - Method in class com.google.inject.AbstractModule
- getProvider(Key<T>) - Method in interface com.google.inject.Binder
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Key<T>) - Method in class com.google.inject.PrivateModule
- getProvider(Key<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Dependency<T>) - Method in interface com.google.inject.Binder
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Class<T>) - Method in class com.google.inject.AbstractModule
- getProvider(Class<T>) - Method in interface com.google.inject.Binder
-
Returns the provider used to obtain instances for the given injection type.
- getProvider(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the provider used to obtain instances for the given type.
- getProvider(Class<T>) - Method in class com.google.inject.PrivateModule
- getProvider(Class<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the provider used to obtain instances for the given injection type.
- getProviderInstance() - Method in interface com.google.inject.spi.ProviderInstanceBinding
-
Deprecated.Use
ProviderInstanceBinding.getUserSuppliedProvider()
instead. - getProviderKey() - Method in interface com.google.inject.spi.ProviderKeyBinding
-
Returns the key used to resolve the provider's binding.
- getRawType() - Method in class com.google.inject.TypeLiteral
-
Returns the raw (non-generic) type for this type.
- getReturnType(Method) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic return type of
method
. - getRootKeys(Injector) - Method in class com.google.inject.grapher.DefaultRootKeySetCreator
- getRootKeys(Injector) - Method in interface com.google.inject.grapher.RootKeySetCreator
-
Returns the set of starting keys to graph.
- getRootKeySetCreator() - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- getScanner() - Method in class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- getScope() - Method in class com.google.inject.spi.ScopeBinding
- getScopeBindings() - Method in interface com.google.inject.Injector
-
Returns a map containing all scopes in the injector.
- getServletContext() - Method in class com.google.inject.servlet.ServletModule
-
This method only works if you are using the GuiceServletContextListener to create your injector.
- getServletInstance() - Method in interface com.google.inject.servlet.InstanceServletBinding
-
Returns the servlet instance that will be used.
- getSetKey() - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns the key for the set.
- getShape() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getSource() - Method in class com.google.inject.grapher.Node
- getSource() - Method in class com.google.inject.spi.DisableCircularProxiesOption
- getSource() - Method in interface com.google.inject.spi.Element
-
Returns an arbitrary object containing information about the "place" where this element was configured.
- getSource() - Method in class com.google.inject.spi.InjectionRequest
- getSource() - Method in class com.google.inject.spi.InterceptorBinding
- getSource() - Method in class com.google.inject.spi.MembersInjectorLookup
- getSource() - Method in class com.google.inject.spi.Message
- getSource() - Method in class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- getSource() - Method in class com.google.inject.spi.ProviderLookup
- getSource() - Method in class com.google.inject.spi.ProvisionListenerBinding
- getSource() - Method in class com.google.inject.spi.RequireAtInjectOnConstructorsOption
- getSource() - Method in class com.google.inject.spi.RequireExactBindingAnnotationsOption
- getSource() - Method in class com.google.inject.spi.RequireExplicitBindingsOption
- getSource() - Method in class com.google.inject.spi.ScopeBinding
- getSource() - Method in class com.google.inject.spi.StaticInjectionRequest
- getSource() - Method in class com.google.inject.spi.TypeConverterBinding
- getSource() - Method in class com.google.inject.spi.TypeListenerBinding
- getSource() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
-
Gets the source of this binding.
- getSourceKey() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the key for the source binding.
- getSourceName(Object) - Method in interface com.google.inject.grapher.NameFactory
- getSourceName(Object) - Method in class com.google.inject.grapher.ShortNameFactory
-
Returns a name for a Guice "source" object.
- getSources() - Method in class com.google.inject.spi.ErrorDetail
- getSources() - Method in class com.google.inject.spi.Message
- getStyle() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getStyle() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getSubtitles() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getSupertype(Class<?>) - Method in class com.google.inject.TypeLiteral
-
Returns the generic form of
supertype
. - getTailCompassPoint() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getTailNodeId() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getTailPortId() - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- getTitle() - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- getToId() - Method in class com.google.inject.grapher.Alias
- getToId() - Method in class com.google.inject.grapher.Edge
- getTransactionInterceptor() - Method in class com.google.inject.persist.jpa.JpaPersistModule
- getTransactionInterceptor() - Method in class com.google.inject.persist.PersistModule
- getType() - Method in class com.google.inject.grapher.BindingEdge
- getType() - Method in class com.google.inject.spi.InjectionRequest
- getType() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Gets the type containing the members to be injected.
- getType() - Method in class com.google.inject.spi.StaticInjectionRequest
- getType() - Method in class com.google.inject.TypeLiteral
-
Gets underlying
Type
instance. - getTypeConverter() - Method in class com.google.inject.spi.TypeConverterBinding
- getTypeConverterBinding() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the type converter binding used to convert the constant.
- getTypeConverterBindings() - Method in interface com.google.inject.Injector
-
Returns a set containing all type converter bindings in the injector.
- getTypeLiteral() - Method in class com.google.inject.Key
-
Gets the key type.
- getTypeMatcher() - Method in class com.google.inject.spi.TypeConverterBinding
- getTypeMatcher() - Method in class com.google.inject.spi.TypeListenerBinding
-
Returns the type matcher which chooses which types the listener should be notified of.
- getUriPatternType() - Method in interface com.google.inject.servlet.ServletModuleBinding
-
Returns the pattern type that this binding was created with.
- getUserSuppliedProvider() - Method in interface com.google.inject.spi.ProviderInstanceBinding
-
Returns the user-supplied, unscoped provider.
- getValue() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the converted value.
- getValue() - Method in class com.google.inject.testing.fieldbinder.BoundFieldModule.BoundFieldInfo
-
Returns the current value of this field.
- getValueTypeLiteral() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns the TypeLiteral describing the values of the map.
- graph(Injector) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
- graph(Injector) - Method in interface com.google.inject.grapher.InjectorGrapher
-
Graphs the guice dependency graph for the given injector using default starting keys.
- graph(Injector, Set<Key<?>>) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
- graph(Injector, Set<Key<?>>) - Method in interface com.google.inject.grapher.InjectorGrapher
-
Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.
- GrapherParameters() - Constructor for class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- GraphvizEdge - Class in com.google.inject.grapher.graphviz
-
Data object to encapsulate the attributes of Graphviz edges that we're interested in drawing.
- GraphvizEdge(NodeId, NodeId) - Constructor for class com.google.inject.grapher.graphviz.GraphvizEdge
- GraphvizGrapher - Class in com.google.inject.grapher.graphviz
-
InjectorGrapher
implementation that writes out a Graphviz DOT file of the graph. - GraphvizModule - Class in com.google.inject.grapher.graphviz
-
Module that provides classes needed by
GraphvizGrapher
. - GraphvizModule() - Constructor for class com.google.inject.grapher.graphviz.GraphvizModule
- GraphvizNode - Class in com.google.inject.grapher.graphviz
-
Data object to encapsulate the attributes of Graphviz nodes that we're interested in drawing.
- GraphvizNode(NodeId) - Constructor for class com.google.inject.grapher.graphviz.GraphvizNode
- Guice - Class in com.google.inject
-
The entry point to the Guice framework.
- GuiceFilter - Class in com.google.inject.servlet
-
Apply this filter in web.xml above all other filters (typically), to all requests where you plan to use servlet scopes.
- GuiceFilter() - Constructor for class com.google.inject.servlet.GuiceFilter
- GuiceServletContextListener - Class in com.google.inject.servlet
-
As of Guice 2.0 you can still use (your subclasses of)
GuiceServletContextListener
class as a logical place to create and configure your injector. - GuiceServletContextListener() - Constructor for class com.google.inject.servlet.GuiceServletContextListener
- guicify(Provider<T>) - Static method in class com.google.inject.util.Providers
-
Deprecated.Marked as deprecated as a hint to users that calling this is unnecessary, because the provider is already a guice Provider.
- guicify(Provider<T>) - Static method in class com.google.inject.util.Providers
-
Returns a Guice-friendly
com.google.inject.Provider
for the givenjakarta.inject.Provider
.
H
- hasAttributes() - Method in class com.google.inject.Key
-
Returns true if this key has annotation attributes.
- HasDependencies - Interface in com.google.inject.spi
- hashCode() - Method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- hashCode() - Method in class com.google.inject.grapher.BindingEdge
- hashCode() - Method in class com.google.inject.grapher.DependencyEdge
- hashCode() - Method in class com.google.inject.grapher.Edge
- hashCode() - Method in class com.google.inject.grapher.ImplementationNode
- hashCode() - Method in class com.google.inject.grapher.InstanceNode
- hashCode() - Method in class com.google.inject.grapher.Node
- hashCode() - Method in class com.google.inject.grapher.NodeId
- hashCode() - Method in class com.google.inject.Key
- hashCode() - Method in class com.google.inject.multibindings.MapBinder
- hashCode() - Method in class com.google.inject.multibindings.Multibinder
- hashCode() - Method in class com.google.inject.multibindings.OptionalBinder
- hashCode() - Method in class com.google.inject.spi.Dependency
- hashCode() - Method in class com.google.inject.spi.ErrorDetail
- hashCode() - Method in class com.google.inject.spi.InjectionPoint
- hashCode() - Method in class com.google.inject.spi.InjectionRequest
- hashCode() - Method in class com.google.inject.spi.MembersInjectorLookup
- hashCode() - Method in class com.google.inject.spi.Message
- hashCode() - Method in class com.google.inject.spi.ProviderLookup
- hashCode() - Method in class com.google.inject.spi.StaticInjectionRequest
- hashCode() - Method in class com.google.inject.TypeLiteral
- hear(TypeLiteral<I>, TypeEncounter<I>) - Method in interface com.google.inject.spi.TypeListener
-
Invoked when Guice encounters a new type eligible for constructor or members injection.
- htmlEscape(String) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- htmlEscape(List<String>) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
I
- identicalTo(Object) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches only the given object.
- ignore() - Method in annotation type com.google.inject.persist.Transactional
-
A list of exceptions to not rollback on.
- implement(Key<T>, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Key<T>, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, Annotation, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, Annotation, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, Class<? extends Annotation>, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, Class<? extends Annotation>, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(TypeLiteral<T>, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, Annotation, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, Annotation, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, Class<? extends Annotation>, TypeLiteral<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, Class<? extends Annotation>, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - implement(Class<T>, Class<? extends T>) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
See the factory configuration examples at
FactoryModuleBuilder
. - ImplementationNode - Class in com.google.inject.grapher
-
Node for types that have
Dependency
s and are bound toInterfaceNode
s. - ImplementationNode(NodeId, Object, Collection<Member>) - Constructor for class com.google.inject.grapher.ImplementationNode
- ImplementedBy - Annotation Type in com.google.inject
-
A pointer to the default implementation of a type.
- in(Scope) - Method in interface com.google.inject.binder.ScopedBindingBuilder
-
See the EDSL examples at
Binder
. - in(Class<? extends Annotation>) - Method in interface com.google.inject.binder.ScopedBindingBuilder
-
See the EDSL examples at
Binder
. - init(FilterConfig) - Method in class com.google.inject.persist.PersistFilter
- init(FilterConfig) - Method in class com.google.inject.servlet.GuiceFilter
- initializeDelegate(MembersInjector<T>) - Method in class com.google.inject.spi.MembersInjectorLookup
-
Sets the actual members injector.
- initializeDelegate(Provider<T>) - Method in class com.google.inject.spi.ProviderLookup
-
Sets the actual provider.
- Inject - Annotation Type in com.google.inject
-
Annotates members of your implementation class (constructors, methods and fields) into which the
Injector
should inject values. - InjectionListener<I> - Interface in com.google.inject.spi
-
Listens for injections into instances of type
I
. - InjectionPoint - Class in com.google.inject.spi
-
A constructor, field or method that can receive injections.
- InjectionRequest<T> - Class in com.google.inject.spi
-
A request to inject the instance fields and methods of an instance.
- InjectionRequest(Object, TypeLiteral<T>, T) - Constructor for class com.google.inject.spi.InjectionRequest
- injectMembers(Object) - Method in interface com.google.inject.Injector
-
Injects dependencies into the fields and methods of
instance
. - injectMembers(T) - Method in interface com.google.inject.MembersInjector
-
Injects dependencies into the fields and methods of
instance
. - Injector - Interface in com.google.inject
-
Builds the graphs of objects that make up your application.
- InjectorGrapher - Interface in com.google.inject.grapher
-
Guice injector grapher.
- inPackage(Package) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches classes in the given package.
- install(Module) - Method in class com.google.inject.AbstractModule
- install(Module) - Method in interface com.google.inject.Binder
-
Uses the given module to configure more bindings.
- install(Module) - Method in class com.google.inject.PrivateModule
- INSTANCE - com.google.inject.grapher.NodeId.NodeType
-
Instance node, used when something is bound to an instance.
- InstanceBinding<T> - Interface in com.google.inject.spi
-
A binding to a single instance.
- InstanceFilterBinding - Interface in com.google.inject.servlet
-
A binding to a single instance of a filter.
- InstanceNode - Class in com.google.inject.grapher
-
Node for instances.
- InstanceNode(NodeId, Object, Object, Iterable<Member>) - Constructor for class com.google.inject.grapher.InstanceNode
- InstanceServletBinding - Interface in com.google.inject.servlet
-
A binding to a single instance of a servlet.
- inSubpackage(String) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches classes in the given package and its subpackages.
- InterceptorBinding - Class in com.google.inject.spi
-
Registration of interceptors for matching methods of matching classes.
- InterfaceNode - Class in com.google.inject.grapher
-
Node for an interface type that has been bound to an implementation class or instance.
- InterfaceNode(NodeId, Object) - Constructor for class com.google.inject.grapher.InterfaceNode
- INVERTED - com.google.inject.grapher.graphviz.ArrowType
- INVERTED_OPEN - com.google.inject.grapher.graphviz.ArrowType
- INVISIBLE - com.google.inject.grapher.graphviz.EdgeStyle
- INVISIBLE - com.google.inject.grapher.graphviz.NodeStyle
- isCircularProxy(Object) - Static method in class com.google.inject.Scopes
-
Returns true if the object is a proxy for a circular dependency, constructed by Guice because it encountered a circular dependency.
- isEnhanced(Class<?>) - Static method in class com.google.inject.util.Enhanced
-
Returns true if this is a class that Guice enhanced with AOP functionality.
- isMergeable(ErrorDetail<?>) - Method in class com.google.inject.spi.ErrorDetail
-
Returns true if this error can be merged with the
otherError
and formatted together. - isNullable() - Method in class com.google.inject.spi.Dependency
-
Returns true if null is a legal value for this dependency.
- isOptional() - Method in class com.google.inject.spi.InjectionPoint
-
Returns true if this injection point shall be skipped if the injector cannot resolve bindings for all required dependencies.
- isRequestScoped(Binding<?>) - Static method in class com.google.inject.servlet.ServletScopes
-
Returns true if
binding
is request-scoped. - isScoped(Binding<?>, Scope, Class<? extends Annotation>) - Static method in class com.google.inject.Scopes
-
Returns true if
binding
has the given scope. - isSingleton(Binding<?>) - Static method in class com.google.inject.Scopes
-
Returns true if
binding
is singleton-scoped. - isToolable() - Method in class com.google.inject.spi.InjectionPoint
-
Returns true if the element is annotated with @
Toolable
.
J
- jakartaProviderOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
Provider
that provides elements of typeelementType
. - JndiIntegration - Class in com.google.inject.jndi
-
Integrates Guice with JNDI.
- JpaPersistModule - Class in com.google.inject.persist.jpa
-
JPA provider for guice persist.
- JpaPersistModule(String) - Constructor for class com.google.inject.persist.jpa.JpaPersistModule
- JpaPersistModule(String, JpaPersistOptions) - Constructor for class com.google.inject.persist.jpa.JpaPersistModule
- JpaPersistOptions - Class in com.google.inject.persist.jpa
-
Options that configure how the JPA persist service will work.
- JpaPersistOptions.Builder - Class in com.google.inject.persist.jpa
-
A builder to create the options.
K
- Key<T> - Class in com.google.inject
-
Guice uses Key objects to identify a dependency that can be resolved by the Guice
Injector
. - Key() - Constructor for class com.google.inject.Key
-
Constructs a new key.
- Key(Annotation) - Constructor for class com.google.inject.Key
-
Constructs a new key.
- Key(Class<? extends Annotation>) - Constructor for class com.google.inject.Key
-
Constructs a new key.
L
- lazy() - Method in annotation type com.google.inject.testing.fieldbinder.Bind
-
If true,
BoundFieldModule
will delay reading the field until injection time rather than eagerly reading it at configure time. - LinkedBindingBuilder<T> - Interface in com.google.inject.binder
-
See the EDSL examples at
Binder
. - LinkedFilterBinding - Interface in com.google.inject.servlet
-
A linked binding to a filter.
- LinkedKeyBinding<T> - Interface in com.google.inject.spi
-
A binding to a linked key.
- LinkedServletBinding - Interface in com.google.inject.servlet
-
A linked binding to a servlet.
- listOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
List
whose elements are of typeelementType
.
M
- main(String[]) - Static method in class com.google.inject.tools.jmx.Manager
-
Run with no arguments for usage instructions.
- manage(String, Injector) - Static method in class com.google.inject.tools.jmx.Manager
-
Registers all the bindings of an Injector with the platform MBean server.
- manage(MBeanServer, String, Injector) - Static method in class com.google.inject.tools.jmx.Manager
-
Registers all the bindings of an Injector with the given MBean server.
- ManagedBindingMBean - Interface in com.google.inject.tools.jmx
-
JMX interface to bindings.
- Manager - Class in com.google.inject.tools.jmx
-
Provides a JMX interface to Guice.
- Manager() - Constructor for class com.google.inject.tools.jmx.Manager
- MapBinder<K,V> - Class in com.google.inject.multibindings
-
An API to bind multiple map entries separately, only to later inject them as a complete map.
- MapBinderBinding<T> - Interface in com.google.inject.multibindings
-
A binding for a MapBinder.
- MapKey - Annotation Type in com.google.inject.multibindings
-
Allows users define customized key type annotations for map bindings by annotating an annotation of a
Map
's key type. - mapOf(Type, Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
Map
whose keys are of typekeyType
and whose values are of typevalueType
. - Matcher<T> - Interface in com.google.inject.matcher
-
Returns
true
orfalse
for a given input. - Matchers - Class in com.google.inject.matcher
-
Matcher implementations.
- matches(T) - Method in interface com.google.inject.matcher.Matcher
-
Returns
true
if this matchest
,false
otherwise. - matchesUri(String) - Method in interface com.google.inject.servlet.ServletModuleBinding
-
Returns true if the given URI will match this binding.
- MaxResults - Annotation Type in com.google.inject.persist.finder
-
Annotate any dynamic finder method's integer argument with this to pass in the maximum size of returned result window.
- MembersInjector<T> - Interface in com.google.inject
-
Injects dependencies into the fields and methods on instances of type
T
. - MembersInjectorLookup<T> - Class in com.google.inject.spi
-
A lookup of the members injector for a type.
- MembersInjectorLookup(Object, TypeLiteral<T>) - Constructor for class com.google.inject.spi.MembersInjectorLookup
- Message - Class in com.google.inject.spi
-
An error message and the context in which it occurred.
- Message(ErrorId, List<Object>, String, Throwable) - Constructor for class com.google.inject.spi.Message
- Message(GuiceInternal, ErrorId, ErrorDetail<?>) - Constructor for class com.google.inject.spi.Message
- Message(Object, String) - Constructor for class com.google.inject.spi.Message
- Message(String) - Constructor for class com.google.inject.spi.Message
- Message(String, Throwable) - Constructor for class com.google.inject.spi.Message
- Message(List<Object>, String, Throwable) - Constructor for class com.google.inject.spi.Message
- metadata() - Method in class com.google.inject.persist.finder.DynamicFinder
- Module - Interface in com.google.inject
-
A module contributes configuration information, typically interface bindings, which will be used to create an
Injector
. - ModuleAnnotatedMethodScanner - Class in com.google.inject.spi
-
Allows extensions to scan modules for annotated methods and bind those methods as providers, similar to
@Provides
methods. - ModuleAnnotatedMethodScanner() - Constructor for class com.google.inject.spi.ModuleAnnotatedMethodScanner
- ModuleAnnotatedMethodScannerBinding - Class in com.google.inject.spi
-
Represents a call to
Binder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
in a module. - ModuleAnnotatedMethodScannerBinding(Object, ModuleAnnotatedMethodScanner) - Constructor for class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- Modules - Class in com.google.inject.util
-
Static utility methods for creating and working with instances of
Module
. - Modules.OverriddenModuleBuilder - Interface in com.google.inject.util
-
See the EDSL example at
override()
. - Multibinder<T> - Class in com.google.inject.multibindings
-
An API to bind multiple values separately, only to later inject them as a complete collection.
- MultibinderBinding<T> - Interface in com.google.inject.multibindings
-
A binding for a Multibinder.
- MultibindingsScanner - Class in com.google.inject.multibindings
-
Deprecated.This functionality is installed by default. All references to this can be safely removed. This class will be removed in Guice 4.4
- MultibindingsTargetVisitor<T,V> - Interface in com.google.inject.multibindings
-
A visitor for the multibinder extension.
N
- named(String) - Static method in class com.google.inject.name.Names
-
Creates a
Named
annotation withname
as the value. - Named - Annotation Type in com.google.inject.name
-
Annotates named things.
- namedQuery() - Method in annotation type com.google.inject.persist.finder.Finder
-
Returns the configured named query's name.
- NameFactory - Interface in com.google.inject.grapher
- Names - Class in com.google.inject.name
-
Utility methods for use with
@
Named
. - newBindingEdge(BindingEdge) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Adds a new binding edge to the graph.
- newBindingEdge(BindingEdge) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- newDependencyEdge(DependencyEdge) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Adds a new dependency edge to the graph.
- newDependencyEdge(DependencyEdge) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- newFactory(TypeLiteral<F>, TypeLiteral<?>) - Static method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- newFactory(Class<F>, Class<?>) - Static method in class com.google.inject.assistedinject.FactoryProvider
-
Deprecated.
- newImplementationNode(ImplementationNode) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Adds a new implementation node to the graph.
- newImplementationNode(ImplementationNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- newInstanceId(Key<?>) - Static method in class com.google.inject.grapher.NodeId
- newInstanceNode(InstanceNode) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Adds a new instance node to the graph.
- newInstanceNode(InstanceNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- newInterfaceNode(InterfaceNode) - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Adds a new interface node to the graph.
- newInterfaceNode(InterfaceNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- newMapBinder(Binder, TypeLiteral<K>, TypeLiteral<V>) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound with no binding annotation. - newMapBinder(Binder, TypeLiteral<K>, TypeLiteral<V>, Annotation) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound withannotation
. - newMapBinder(Binder, TypeLiteral<K>, TypeLiteral<V>, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound withannotationType
. - newMapBinder(Binder, Class<K>, Class<V>) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound with no binding annotation. - newMapBinder(Binder, Class<K>, Class<V>, Annotation) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound withannotation
. - newMapBinder(Binder, Class<K>, Class<V>, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.MapBinder
-
Returns a new mapbinder that collects entries of
keyType
/valueType
in aMap
that is itself bound withannotationType
. - newOptionalBinder(Binder, Key<T>) - Static method in class com.google.inject.multibindings.OptionalBinder
- newOptionalBinder(Binder, TypeLiteral<T>) - Static method in class com.google.inject.multibindings.OptionalBinder
- newOptionalBinder(Binder, Class<T>) - Static method in class com.google.inject.multibindings.OptionalBinder
- newParameterizedType(Type, Type...) - Static method in class com.google.inject.util.Types
-
Returns a new parameterized type, applying
typeArguments
torawType
. - newParameterizedTypeWithOwner(Type, Type, Type...) - Static method in class com.google.inject.util.Types
-
Returns a new parameterized type, applying
typeArguments
torawType
and enclosed byownerType
. - newPrivateBinder() - Method in interface com.google.inject.Binder
-
Creates a new private child environment for bindings and other configuration.
- newSetBinder(Binder, Key<T>) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of the key's type in a
Set
that is itself bound with the annotation (if any) of the key. - newSetBinder(Binder, TypeLiteral<T>) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound with no binding annotation. - newSetBinder(Binder, TypeLiteral<T>, Annotation) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound withannotation
. - newSetBinder(Binder, TypeLiteral<T>, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound withannotationType
. - newSetBinder(Binder, Class<T>) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound with no binding annotation. - newSetBinder(Binder, Class<T>, Annotation) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound withannotation
. - newSetBinder(Binder, Class<T>, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.Multibinder
-
Returns a new multibinder that collects instances of
type
in aSet
that is itself bound withannotationType
. - newTypeId(Key<?>) - Static method in class com.google.inject.grapher.NodeId
- NO_SCOPE - Static variable in class com.google.inject.Scopes
-
No scope; the same as not applying any scope at all.
- Node - Class in com.google.inject.grapher
-
Node in a guice dependency graph.
- Node(NodeId, Object) - Constructor for class com.google.inject.grapher.Node
- NodeCreator - Interface in com.google.inject.grapher
-
Creator of graph nodes.
- NodeId - Class in com.google.inject.grapher
-
ID of a node in the graph.
- NodeId.NodeType - Enum in com.google.inject.grapher
-
Type of node.
- NodeShape - Enum in com.google.inject.grapher.graphviz
-
Enum for the shapes that are most interesting for Guice graphing.
- NodeStyle - Enum in com.google.inject.grapher.graphviz
-
Styles for nodes.
- NONE - com.google.inject.grapher.graphviz.ArrowType
- NONE - com.google.inject.grapher.graphviz.NodeShape
- NORMAL - com.google.inject.grapher.BindingEdge.Type
-
Binding is to an instance or class of the binding's same type.
- NORMAL - com.google.inject.grapher.graphviz.ArrowType
- NORMAL_OPEN - com.google.inject.grapher.graphviz.ArrowType
- NORTH - com.google.inject.grapher.graphviz.CompassPoint
- NORTH_EAST - com.google.inject.grapher.graphviz.CompassPoint
- NORTH_WEST - com.google.inject.grapher.graphviz.CompassPoint
- not(Matcher<? super T>) - Static method in class com.google.inject.matcher.Matchers
-
Inverts the given matcher.
O
- of(TypeLiteral<P>, T) - Static method in class com.google.inject.throwingproviders.CheckedProviders
-
Returns a
CheckedProvider
which always providesinstance
. - of(Class<P>, T) - Static method in class com.google.inject.throwingproviders.CheckedProviders
-
Returns a
CheckedProvider
which always providesinstance
. - of(Object) - Static method in class com.google.inject.testing.fieldbinder.BoundFieldModule
-
Create a BoundFieldModule which binds the
Bind
annotated fields ofinstance
. - of(T) - Static method in class com.google.inject.util.Providers
-
Returns a provider which always provides
instance
. - ofType(TypeLiteral<U>) - Method in class com.google.inject.Key
-
Returns a new key of the specified type with the same annotation as this key.
- ofType(Class<U>) - Method in class com.google.inject.Key
-
Returns a new key of the specified type with the same annotation as this key.
- ofType(Type) - Method in class com.google.inject.Key
-
Returns a new key of the specified type with the same annotation as this key.
- only(Object) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches objects equal to the given object.
- onProvision(ProvisionListener.ProvisionInvocation<T>) - Method in interface com.google.inject.spi.ProvisionListener
-
Invoked by Guice when an object requires provisioning.
- open() - Method in interface com.google.inject.servlet.RequestScoper
-
Opens up the request scope until the returned object is closed.
- optional() - Method in annotation type com.google.inject.Inject
-
If true, and the appropriate binding is not found, the Injector will skip injection of this method or field rather than produce an error.
- OptionalBinder<T> - Class in com.google.inject.multibindings
-
An API to bind optional values, optionally with a default value.
- OptionalBinderBinding<T> - Interface in com.google.inject.multibindings
-
A binding for a OptionalBinder.
- or(Matcher<? super T>) - Method in class com.google.inject.matcher.AbstractMatcher
-
Deprecated.
- or(Matcher<? super T>) - Method in interface com.google.inject.matcher.Matcher
-
Returns a new matcher which returns
true
if either this or the given matcher returntrue
. - OutOfScopeException - Exception in com.google.inject
-
Thrown from
Provider.get()
when an attempt is made to access a scoped object while the scope in question is not currently active. - OutOfScopeException(String) - Constructor for exception com.google.inject.OutOfScopeException
- OutOfScopeException(String, Throwable) - Constructor for exception com.google.inject.OutOfScopeException
- OutOfScopeException(Throwable) - Constructor for exception com.google.inject.OutOfScopeException
- override() - Static method in class com.google.inject.util.Modules
-
Deprecated.there's no reason to use
Modules.override()
without any arguments. - override(Module...) - Static method in class com.google.inject.util.Modules
-
Returns a builder that creates a module that overlays override modules over the given modules.
- override(Iterable<? extends Module>) - Static method in class com.google.inject.util.Modules
-
Returns a builder that creates a module that overlays override modules over the given modules.
P
- permitDuplicates() - Method in class com.google.inject.multibindings.MapBinder
-
Configures the
MapBinder
to handle duplicate entries. - permitDuplicates() - Method in class com.google.inject.multibindings.Multibinder
-
Configures the bound set to silently discard duplicate elements.
- permits() - Method in annotation type com.google.inject.RestrictedBindingSource
-
List of
Permit
annotations (must be non-empty), one of which has has to be present on a restricted binding's source (defined in top-level javadoc). - permitsDuplicates() - Method in interface com.google.inject.multibindings.MapBinderBinding
-
Returns true if the MapBinder permits duplicates.
- permitsDuplicates() - Method in interface com.google.inject.multibindings.MultibinderBinding
-
Returns true if the multibinder permits duplicates.
- PersistFilter - Class in com.google.inject.persist
-
Apply this filter to enable the HTTP Request unit of work and to have guice-persist manage the lifecycle of active units of work.
- PersistFilter(UnitOfWork, PersistService) - Constructor for class com.google.inject.persist.PersistFilter
- PersistModule - Class in com.google.inject.persist
-
Install this module to add guice-persist library support for JPA persistence providers.
- PersistModule() - Constructor for class com.google.inject.persist.PersistModule
- PersistService - Interface in com.google.inject.persist
-
Persistence provider service.
- PortIdFactory - Interface in com.google.inject.grapher.graphviz
-
Interface for a service that returns Graphviz port IDs, used for naming the rows in
ImplementationNode
-displayingGraphvizNode
s. - PortIdFactoryImpl - Class in com.google.inject.grapher.graphviz
-
Implementation of
PortIdFactory
. - PortIdFactoryImpl() - Constructor for class com.google.inject.grapher.graphviz.PortIdFactoryImpl
- postProcess() - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Performs any post processing required after all nodes and edges have been added.
- postProcess() - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- prepareMethod(Binder, Annotation, Key<T>, InjectionPoint) - Method in class com.google.inject.spi.ModuleAnnotatedMethodScanner
-
Prepares a method for binding.
- PrivateBinder - Interface in com.google.inject
-
Returns a binder whose configuration information is hidden from its environment by default.
- PrivateElements - Interface in com.google.inject.spi
-
A private collection of elements that are hidden from the enclosing injector or module by default.
- PrivateModule - Class in com.google.inject
-
A module whose configuration information is hidden from its environment by default.
- PrivateModule() - Constructor for class com.google.inject.PrivateModule
- PRODUCTION - com.google.inject.Stage
-
We want to catch errors as early as possible and take performance hits up front.
- properties(Map<?, ?>) - Method in class com.google.inject.persist.jpa.JpaPersistModule
-
Configures the JPA persistence provider with a set of properties.
- ProvidedBy - Annotation Type in com.google.inject
-
A pointer to the default provider type for a type.
- providedValue() - Method in class com.google.inject.testing.throwingproviders.CheckedProviderSubject
-
Allows for assertions on the value provided by this provider.
- Provider<T> - Interface in com.google.inject
-
An object capable of providing instances of type
T
. - PROVIDER - com.google.inject.grapher.BindingEdge.Type
-
Binding is to an instance or class that provides the binding's type.
- ProviderBinding<T extends Provider<?>> - Interface in com.google.inject.spi
-
A binding to a
Provider
that delegates to the binding for the provided type. - ProviderInstanceBinding<T> - Interface in com.google.inject.spi
-
A binding to a provider instance.
- ProviderKeyBinding<T> - Interface in com.google.inject.spi
-
A binding to a provider key.
- ProviderLookup<T> - Class in com.google.inject.spi
-
A lookup of the provider for a type.
- ProviderLookup(Object, Key<T>) - Constructor for class com.google.inject.spi.ProviderLookup
- ProviderLookup(Object, Dependency<T>) - Constructor for class com.google.inject.spi.ProviderLookup
- providerOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
Provider
that provides elements of typeelementType
. - Providers - Class in com.google.inject.util
-
Static utility methods for creating and working with instances of
Provider
. - ProviderWithDependencies<T> - Interface in com.google.inject.spi
-
A provider with dependencies on other injected types.
- ProviderWithExtensionVisitor<T> - Interface in com.google.inject.spi
-
A Provider that is part of an extension which supports a custom BindingTargetVisitor.
- Provides - Annotation Type in com.google.inject
-
Annotates methods of a
Module
to create a provider method binding. - ProvidesIntoMap - Annotation Type in com.google.inject.multibindings
- ProvidesIntoOptional - Annotation Type in com.google.inject.multibindings
-
Annotates methods of a
Module
to add items to aMultibinder
. - ProvidesIntoOptional.Type - Enum in com.google.inject.multibindings
- ProvidesIntoSet - Annotation Type in com.google.inject.multibindings
-
Annotates methods of a
Module
to add items to aMultibinder
. - ProvidesMethodBinding<T> - Interface in com.google.inject.spi
-
An @
Provides
binding or binding produced by aModuleAnnotatedMethodScanner
. - ProvidesMethodTargetVisitor<T,V> - Interface in com.google.inject.spi
-
A visitor for the @
Provides
bindings. - providing(TypeLiteral<? extends T>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- providing(Class<? extends T>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- provision() - Method in class com.google.inject.spi.ProvisionListener.ProvisionInvocation
-
Performs the provision, returning the object provisioned.
- ProvisionException - Exception in com.google.inject
-
Indicates that there was a runtime failure while providing an instance.
- ProvisionException(Iterable<Message>) - Constructor for exception com.google.inject.ProvisionException
-
Creates a ProvisionException containing
messages
. - ProvisionException(String) - Constructor for exception com.google.inject.ProvisionException
- ProvisionException(String, Throwable) - Constructor for exception com.google.inject.ProvisionException
- ProvisionInvocation() - Constructor for class com.google.inject.spi.ProvisionListener.ProvisionInvocation
- ProvisionListener - Interface in com.google.inject.spi
-
Listens for provisioning of objects.
- ProvisionListener.ProvisionInvocation<T> - Class in com.google.inject.spi
-
Encapsulates a single act of provisioning.
- ProvisionListenerBinding - Class in com.google.inject.spi
-
Binds keys (picked using a Matcher) to a provision listener.
Q
- query() - Method in annotation type com.google.inject.persist.finder.Finder
-
Returns the configured query string.
R
- REGEX - com.google.inject.servlet.UriPatternType
- register(MembersInjector<? super I>) - Method in interface com.google.inject.spi.TypeEncounter
-
Registers a members injector for type
I
. - register(InjectionListener<? super I>) - Method in interface com.google.inject.spi.TypeEncounter
-
Registers an injection listener for type
I
. - renderEdge(GraphvizEdge) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- renderNode(GraphvizNode) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- REQUEST - Static variable in class com.google.inject.servlet.ServletScopes
-
HTTP servlet request scope.
- requestInjection(TypeLiteral<T>, T) - Method in class com.google.inject.AbstractModule
- requestInjection(TypeLiteral<T>, T) - Method in interface com.google.inject.Binder
-
Upon successful creation, the
Injector
will inject instance fields and methods of the given object. - requestInjection(Object) - Method in class com.google.inject.AbstractModule
- requestInjection(Object) - Method in interface com.google.inject.Binder
-
Upon successful creation, the
Injector
will inject instance fields and methods of the given object. - requestInjection(Object) - Method in class com.google.inject.PrivateModule
- RequestParameters - Annotation Type in com.google.inject.servlet
-
Apply this to field or parameters of type
Map<String, String[]>
when you want the HTTP request parameter map to be injected. - RequestScoped - Annotation Type in com.google.inject.servlet
-
Apply this to implementation classes when you want one instance per request.
- RequestScoper - Interface in com.google.inject.servlet
-
Object that can be used to apply a request scope to a block of code.
- RequestScoper.CloseableScope - Interface in com.google.inject.servlet
-
Closeable subclass that does not throw any exceptions from close.
- requestStaticInjection(Class<?>...) - Method in class com.google.inject.AbstractModule
- requestStaticInjection(Class<?>...) - Method in interface com.google.inject.Binder
-
Upon successful creation, the
Injector
will inject static fields and methods in the given classes. - requestStaticInjection(Class<?>...) - Method in class com.google.inject.PrivateModule
- requireAtInjectOnConstructors() - Method in interface com.google.inject.Binder
-
Requires that a @
Inject
annotation exists on a constructor in order for Guice to consider it an eligible injectable class. - requireAtInjectOnConstructorsModule() - Static method in class com.google.inject.util.Modules
-
Returns a module that will configure the injector to require @
Inject
on constructors. - RequireAtInjectOnConstructorsOption - Class in com.google.inject.spi
-
A request to require explicit @
Inject
annotations on constructors. - requireBinding(Key<?>) - Method in class com.google.inject.AbstractModule
-
Adds a dependency from this module to
key
. - requireBinding(Key<?>) - Method in class com.google.inject.PrivateModule
-
Instructs Guice to require a binding to the given key.
- requireBinding(Class<?>) - Method in class com.google.inject.AbstractModule
-
Adds a dependency from this module to
type
. - requireBinding(Class<?>) - Method in class com.google.inject.PrivateModule
-
Instructs Guice to require a binding to the given type.
- requireExactBindingAnnotations() - Method in interface com.google.inject.Binder
-
Requires that Guice finds an exactly matching binding annotation.
- requireExactBindingAnnotationsModule() - Static method in class com.google.inject.util.Modules
-
Returns a module that will configure the injector to require an exactly matching binding annotation.
- RequireExactBindingAnnotationsOption - Class in com.google.inject.spi
-
A request to require exact binding annotations.
- requireExplicitBindings() - Method in interface com.google.inject.Binder
-
Instructs the Injector that bindings must be listed in a Module in order to be injected.
- requireExplicitBindingsModule() - Static method in class com.google.inject.util.Modules
-
Returns a module that will configure the injector to require explicit bindings.
- RequireExplicitBindingsOption - Class in com.google.inject.spi
-
A request to require explicit bindings.
- reset() - Method in class com.google.inject.grapher.AbstractInjectorGrapher
-
Resets the state of the grapher before rendering a new graph.
- reset() - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- RestrictedBindingSource - Annotation Type in com.google.inject
-
Annotation restricting the binding of the target type to permitted sources.
- RestrictedBindingSource.Permit - Annotation Type in com.google.inject
-
Meta-annotation indicating that the target annotation is a permit for binding restricted bindings.
- RestrictedBindingSource.RestrictionLevel - Enum in com.google.inject
-
Level of restriction.
- restrictionLevel() - Method in annotation type com.google.inject.RestrictedBindingSource
- returnAs() - Method in annotation type com.google.inject.persist.finder.Finder
-
Returns the configured autoboxing collection class.
- returns(Matcher<? super Class<?>>) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches methods with matching return types.
- rollbackOn() - Method in annotation type com.google.inject.persist.Transactional
-
A list of exceptions to rollback on, if thrown by the transactional method.
- RootKeySetCreator - Interface in com.google.inject.grapher
-
Creator of the default starting set of keys to graph.
- ROUNDED - com.google.inject.grapher.graphviz.NodeStyle
S
- scanModulesForAnnotatedMethods(ModuleAnnotatedMethodScanner) - Method in interface com.google.inject.Binder
-
Adds a scanner that will look in all installed modules for annotations the scanner can parse, and binds them like @Provides methods.
- scanner() - Static method in class com.google.inject.multibindings.MultibindingsScanner
-
Deprecated.This method returns an empty scanner since the preexisting functionality is installed by default.
- scope(Key<T>, Provider<T>) - Method in interface com.google.inject.Scope
-
Scopes a provider.
- Scope - Interface in com.google.inject
-
A scope is a level of visibility that instances provided by Guice may have.
- ScopeAnnotation - Annotation Type in com.google.inject
-
Annotates annotations which are used for scoping.
- ScopeBinding - Class in com.google.inject.spi
-
Registration of a scope annotation with the scope that implements it.
- ScopedBindingBuilder - Interface in com.google.inject.binder
-
See the EDSL examples at
Binder
. - scopeExceptions() - Method in annotation type com.google.inject.throwingproviders.CheckedProvides
-
Whether exceptions should be put into the Guice scope.
- scopeExceptions(boolean) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
-
Determines if exceptions should be scoped.
- scopeRequest(Callable<T>, Map<Key<?>, Object>) - Static method in class com.google.inject.servlet.ServletScopes
-
Scopes the given callable inside a request scope.
- scopeRequest(Map<Key<?>, Object>) - Static method in class com.google.inject.servlet.ServletScopes
-
Returns an object that will apply request scope to a block of code.
- Scopes - Class in com.google.inject
-
Built-in scope implementations.
- ScopingException - Exception in com.google.inject.servlet
-
Exception thrown when there was a failure entering request scope.
- ScopingException(String) - Constructor for exception com.google.inject.servlet.ScopingException
- ScopingOnly - Annotation Type in com.google.inject.servlet
-
Annotates a
GuiceFilter
that provides scope functionality, but doesn't dispatch toServletModule
bound servlets or filters. - SecondaryBinder(Class<P>, Type) - Constructor for class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- serve(Iterable<String>) - Method in class com.google.inject.servlet.ServletModule
- serve(String, String...) - Method in class com.google.inject.servlet.ServletModule
- serveRegex(Iterable<String>) - Method in class com.google.inject.servlet.ServletModule
- serveRegex(String, String...) - Method in class com.google.inject.servlet.ServletModule
- SERVLET - com.google.inject.servlet.UriPatternType
- ServletModule - Class in com.google.inject.servlet
-
Configures the servlet scopes and creates bindings for the servlet API objects so you can inject the request, response, session, etc.
- ServletModule() - Constructor for class com.google.inject.servlet.ServletModule
- ServletModule.FilterKeyBindingBuilder - Interface in com.google.inject.servlet
-
See the EDSL examples at
ServletModule.configureServlets()
- ServletModule.ServletKeyBindingBuilder - Interface in com.google.inject.servlet
-
See the EDSL examples at
ServletModule.configureServlets()
- ServletModuleBinding - Interface in com.google.inject.servlet
-
A binding created by
ServletModule
. - ServletModuleTargetVisitor<T,V> - Interface in com.google.inject.servlet
-
A visitor for the servlet extension.
- ServletScopes - Class in com.google.inject.servlet
-
Servlet scopes.
- SESSION - Static variable in class com.google.inject.servlet.ServletScopes
-
HTTP session scope.
- SessionScoped - Annotation Type in com.google.inject.servlet
-
Apply this to implementation classes when you want one instance per session.
- setAliasCreator(AliasCreator) - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- setArrowHead(List<ArrowType>) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setArrowTail(List<ArrowType>) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setAutoBeginWorkOnEntityManagerCreation(boolean) - Method in class com.google.inject.persist.jpa.JpaPersistOptions.Builder
-
Sets the
JpaPersistOptions.getAutoBeginWorkOnEntityManagerCreation()
property. - setBinding() - Method in class com.google.inject.multibindings.OptionalBinder
-
Returns a binding builder used to set the actual value that will be injected.
- setDefault() - Method in class com.google.inject.multibindings.OptionalBinder
-
Returns a binding builder used to set the default value that will be injected.
- setEdgeCreator(EdgeCreator) - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- setHeadCompassPoint(CompassPoint) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setHeaderBackgroundColor(String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- setHeaderTextColor(String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- setHeadPortId(String) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setIdentifier(String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- setNodeCreator(NodeCreator) - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- setOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type modelling a
Set
whose elements are of typeelementType
. - setOut(PrintWriter) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- setRankdir(String) - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- setRootKeySetCreator(RootKeySetCreator) - Method in class com.google.inject.grapher.AbstractInjectorGrapher.GrapherParameters
- setShape(NodeShape) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- setStyle(EdgeStyle) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setStyle(NodeStyle) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- setTailCompassPoint(CompassPoint) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setTailPortId(String) - Method in class com.google.inject.grapher.graphviz.GraphvizEdge
- setTitle(String) - Method in class com.google.inject.grapher.graphviz.GraphvizNode
- ShortNameFactory - Class in com.google.inject.grapher
-
Reasonable implementation for
NameFactory
. - ShortNameFactory() - Constructor for class com.google.inject.grapher.ShortNameFactory
- Singleton - Annotation Type in com.google.inject
-
Apply this to implementation classes when you want only one instance (per
Injector
) to be reused for all injections for that binding. - SINGLETON - Static variable in class com.google.inject.Scopes
-
One instance per
Injector
. - skipSources(Class<?>...) - Method in interface com.google.inject.Binder
-
Returns a binder that skips
classesToSkip
when identify the calling code. - skipSources(Class<?>...) - Method in interface com.google.inject.PrivateBinder
- SOLID - com.google.inject.grapher.graphviz.EdgeStyle
- SOLID - com.google.inject.grapher.graphviz.NodeStyle
- SOUTH - com.google.inject.grapher.graphviz.CompassPoint
- SOUTH_EAST - com.google.inject.grapher.graphviz.CompassPoint
- SOUTH_WEST - com.google.inject.grapher.graphviz.CompassPoint
- SpringIntegration - Class in com.google.inject.spring
-
Integrates Guice with Spring.
- Stage - Enum in com.google.inject
-
The stage we're running in.
- start() - Method in class com.google.inject.grapher.graphviz.GraphvizGrapher
- start() - Method in interface com.google.inject.persist.PersistService
-
Starts the underlying persistence engine and makes guice-persist ready for use.
- StaticInjectionRequest - Class in com.google.inject.spi
-
A request to inject the static fields and methods of a type.
- stop() - Method in interface com.google.inject.persist.PersistService
-
Stops the underlying persistence engine.
- StringMapKey - Annotation Type in com.google.inject.multibindings
-
Allows @
ProvidesIntoMap
to specify a string map key. - subclassesOf(Class<?>) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches subclasses of the given type (as well as the given type).
- subtypeOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type that represents an unknown type that extends
bound
. - supertypeOf(Type) - Static method in class com.google.inject.util.Types
-
Returns a type that represents an unknown supertype of
bound
.
T
- TEE - com.google.inject.grapher.graphviz.ArrowType
- through(Key<? extends Filter>) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- through(Key<? extends Filter>, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- through(Filter) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- through(Filter, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- through(Class<? extends Filter>) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- through(Class<? extends Filter>, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder
- throwing(TypeLiteral<P>, Class<? extends Throwable>) - Static method in class com.google.inject.throwingproviders.CheckedProviders
-
Returns a
CheckedProvider
which always throws exceptions. - throwing(Class<P>, Class<? extends Throwable>) - Static method in class com.google.inject.throwingproviders.CheckedProviders
-
Returns a
CheckedProvider
which always throws exceptions. - ThrowingInject - Annotation Type in com.google.inject.throwingproviders
-
A version of @
Inject
designed for ThrowingProviders. - ThrowingProvider<T,E extends Exception> - Interface in com.google.inject.throwingproviders
-
Deprecated.use
CheckedProvider
instead. - ThrowingProviderBinder - Class in com.google.inject.throwingproviders
-
Builds a binding for a
CheckedProvider
. - ThrowingProviderBinder.SecondaryBinder<P extends CheckedProvider,T> - Class in com.google.inject.throwingproviders
- thrownException() - Method in class com.google.inject.testing.throwingproviders.CheckedProviderSubject
-
Allows for assertions on the exception thrown by this provider.
- to() - Method in annotation type com.google.inject.testing.fieldbinder.Bind
-
If specified,
BoundFieldModule
will bind the annotated field's value to this type, rather than to the field's actual type. - to(boolean) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(byte) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(char) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(double) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(float) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(int) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(long) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(short) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(Key<? extends P>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- to(Key<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - to(TypeLiteral<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - to(E) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(Class<?>) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(Class<? extends P>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- to(Class<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - to(String) - Method in interface com.google.inject.binder.ConstantBindingBuilder
-
Binds constant to the given value.
- to(P) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
- toConstructor(Constructor<S>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toConstructor(Constructor<S>, TypeLiteral<? extends S>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toInstance(T) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - TOOL - com.google.inject.Stage
-
We're running in a tool (an IDE plugin for example).
- Toolable - Annotation Type in com.google.inject.spi
-
Instructs an
Injector
running inStage.TOOL
that a method should be injected. - toProvider(Key<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toProvider(Provider<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toProvider(TypeLiteral<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toProvider(Provider<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toProvider(Class<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
See the EDSL examples at
Binder
. - toString() - Method in class com.google.inject.grapher.BindingEdge
- toString() - Method in class com.google.inject.grapher.DependencyEdge
- toString() - Method in enum com.google.inject.grapher.graphviz.ArrowType
- toString() - Method in enum com.google.inject.grapher.graphviz.CompassPoint
- toString() - Method in enum com.google.inject.grapher.graphviz.EdgeStyle
- toString() - Method in enum com.google.inject.grapher.graphviz.NodeShape
- toString() - Method in enum com.google.inject.grapher.graphviz.NodeStyle
- toString() - Method in class com.google.inject.grapher.ImplementationNode
- toString() - Method in class com.google.inject.grapher.InstanceNode
- toString() - Method in class com.google.inject.grapher.InterfaceNode
- toString() - Method in class com.google.inject.grapher.NodeId
- toString() - Method in class com.google.inject.Key
- toString() - Method in interface com.google.inject.Scope
-
A short but useful description of this scope.
- toString() - Method in class com.google.inject.spi.Dependency
- toString() - Method in class com.google.inject.spi.ElementSource
-
Returns
getDeclaringSource().toString()
value. - toString() - Method in class com.google.inject.spi.InjectionPoint
- toString() - Method in class com.google.inject.spi.Message
- toString() - Method in class com.google.inject.spi.ModuleAnnotatedMethodScannerBinding
- toString() - Method in class com.google.inject.spi.ProviderLookup
- toString() - Method in class com.google.inject.spi.ScopeBinding
- toString() - Method in class com.google.inject.spi.TypeConverterBinding
- toString() - Method in class com.google.inject.TypeLiteral
- Transactional - Annotation Type in com.google.inject.persist
-
Any method or class marked with this annotation will be considered for transactionality.
- transferRequest() - Static method in class com.google.inject.servlet.ServletScopes
-
Returns an object that "transfers" the request to another thread.
- transferRequest(Callable<T>) - Static method in class com.google.inject.servlet.ServletScopes
-
Wraps the given callable in a contextual callable that "transfers" the request to another thread.
- TransitiveDependencyVisitor - Class in com.google.inject.grapher
- TransitiveDependencyVisitor() - Constructor for class com.google.inject.grapher.TransitiveDependencyVisitor
- TYPE - com.google.inject.grapher.NodeId.NodeType
-
Type or class node.
- TypeConverter - Interface in com.google.inject.spi
-
Converts constant string values to a different type.
- TypeConverterBinding - Class in com.google.inject.spi
-
Registration of type converters for matching target types.
- TypeConverterBinding(Object, Matcher<? super TypeLiteral<?>>, TypeConverter) - Constructor for class com.google.inject.spi.TypeConverterBinding
- TypeEncounter<I> - Interface in com.google.inject.spi
-
Context of an injectable type encounter.
- TypeListener - Interface in com.google.inject.spi
-
Listens for Guice to encounter injectable types.
- TypeListenerBinding - Class in com.google.inject.spi
-
Binds types (picked using a Matcher) to an type listener.
- TypeLiteral<T> - Class in com.google.inject
-
Represents a generic type
T
. - TypeLiteral() - Constructor for class com.google.inject.TypeLiteral
-
Constructs a new type literal.
- Types - Class in com.google.inject.util
-
Static methods for working with types.
U
- unenhancedClass(Class<T>) - Static method in class com.google.inject.util.Enhanced
-
If the input class is a class that
Enhanced.isEnhanced(java.lang.Class<?>)
is true for, returns the un-enhanced version of the class. - UnitOfWork - Interface in com.google.inject.persist
-
This interface is used to gain manual control over the unit of work.
- UntargettedBinding<T> - Interface in com.google.inject.spi
-
An untargetted binding.
- unwrapValue() - Method in annotation type com.google.inject.multibindings.MapKey
-
if
unwrapValue
is false, then the whole annotation will be the type and annotation instances will be the keys. - UriPatternType - Enum in com.google.inject.servlet
-
An enumeration of the available URI-pattern matching styles
V
- value() - Method in annotation type com.google.inject.assistedinject.Assisted
-
The unique name for this parameter.
- value() - Method in annotation type com.google.inject.ImplementedBy
-
The implementation type.
- value() - Method in annotation type com.google.inject.multibindings.ClassMapKey
- value() - Method in annotation type com.google.inject.multibindings.ProvidesIntoOptional
-
Specifies if the binding is for the actual or default value.
- value() - Method in annotation type com.google.inject.multibindings.StringMapKey
- value() - Method in annotation type com.google.inject.name.Named
- value() - Method in annotation type com.google.inject.ProvidedBy
-
The implementation type.
- value() - Method in annotation type com.google.inject.throwingproviders.CheckedProvides
-
The interface that provides this value, a subinterface of
CheckedProvider
. - valueOf(String) - Static method in enum com.google.inject.grapher.BindingEdge.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.graphviz.ArrowType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.graphviz.CompassPoint
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.graphviz.EdgeStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.graphviz.NodeShape
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.graphviz.NodeStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.grapher.NodeId.NodeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.multibindings.ProvidesIntoOptional.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.RestrictedBindingSource.RestrictionLevel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.servlet.UriPatternType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.inject.Stage
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.inject.grapher.BindingEdge.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.graphviz.ArrowType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.graphviz.CompassPoint
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.graphviz.EdgeStyle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.graphviz.NodeShape
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.graphviz.NodeStyle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.grapher.NodeId.NodeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.multibindings.ProvidesIntoOptional.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.RestrictedBindingSource.RestrictionLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.servlet.UriPatternType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.inject.Stage
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VEE - com.google.inject.grapher.graphviz.ArrowType
- visit(AssistedInjectBinding<? extends T>) - Method in interface com.google.inject.assistedinject.AssistedInjectTargetVisitor
-
Visits an
AssistedInjectBinding
created throughFactoryModuleBuilder
. - visit(Binding<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(Binding<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
- visit(MapBinderBinding<? extends T>) - Method in interface com.google.inject.multibindings.MultibindingsTargetVisitor
-
Visits a binding created through
MapBinder
. - visit(MultibinderBinding<? extends T>) - Method in interface com.google.inject.multibindings.MultibindingsTargetVisitor
-
Visits a binding created through
Multibinder
. - visit(OptionalBinderBinding<? extends T>) - Method in interface com.google.inject.multibindings.MultibindingsTargetVisitor
-
Visits a binding created through
OptionalBinder
. - visit(InstanceFilterBinding) - Method in interface com.google.inject.servlet.ServletModuleTargetVisitor
-
Visits a filter binding created by
ServletModule.filter(java.lang.String, java.lang.String...)
whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)
is called with aFilter
. - visit(InstanceServletBinding) - Method in interface com.google.inject.servlet.ServletModuleTargetVisitor
-
Visits a servlet binding created by
ServletModule.serve(java.lang.String, java.lang.String...)
whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>)
, is called with anHttpServlet
. - visit(LinkedFilterBinding) - Method in interface com.google.inject.servlet.ServletModuleTargetVisitor
-
Visits a filter binding created by
ServletModule.filter(java.lang.String, java.lang.String...)
, whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)
is called with a Class or Key. - visit(LinkedServletBinding) - Method in interface com.google.inject.servlet.ServletModuleTargetVisitor
-
Visits a servlet binding created by
ServletModule.serve(java.lang.String, java.lang.String...)
whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>)
, is called with a Class or Key. - visit(ConstructorBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(ConstructorBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a constructor binding.
- visit(ConstructorBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(ConvertedConstantBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(ConvertedConstantBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding created from converting a bound instance to a new type.
- visit(ConvertedConstantBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(DisableCircularProxiesOption) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(DisableCircularProxiesOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a disable circular proxies command.
- visit(ExposedBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding to a key exposed from an enclosed private environment.
- visit(ExposedBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(InjectionRequest<?>) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(InjectionRequest<?>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a request to inject the instance fields and methods of an instance.
- visit(InstanceBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(InstanceBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a instance binding.
- visit(InstanceBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(InterceptorBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(InterceptorBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of interceptors for matching methods of matching classes.
- visit(LinkedKeyBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(LinkedKeyBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a linked key binding.
- visit(LinkedKeyBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(MembersInjectorLookup<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(MembersInjectorLookup<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a lookup of the members injector.
- visit(Message) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(Message) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit an error message and the context in which it occurred.
- visit(ModuleAnnotatedMethodScannerBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(ModuleAnnotatedMethodScannerBinding) - Method in interface com.google.inject.spi.ElementVisitor
- visit(PrivateElements) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(PrivateElements) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a collection of configuration elements for a private binder.
- visit(ProviderBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(ProviderBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding to a
Provider
that delegates to the binding for the provided type. - visit(ProviderBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(ProviderInstanceBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(ProviderInstanceBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a provider instance binding.
- visit(ProviderInstanceBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(ProviderKeyBinding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visit(ProviderKeyBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a provider key binding.
- visit(ProviderKeyBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visit(ProviderLookup<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(ProviderLookup<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a lookup of the provider for a type.
- visit(ProvidesMethodBinding<? extends T>) - Method in interface com.google.inject.spi.ProvidesMethodTargetVisitor
-
Visits an
ProvidesMethodBinding
created with an @Provides
method. - visit(ProvisionListenerBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(ProvisionListenerBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a provision listener binding.
- visit(RequireAtInjectOnConstructorsOption) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(RequireAtInjectOnConstructorsOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a require explicit @
Inject
command. - visit(RequireExactBindingAnnotationsOption) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(RequireExactBindingAnnotationsOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a require exact binding annotations command.
- visit(RequireExplicitBindingsOption) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(RequireExplicitBindingsOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a require explicit bindings command.
- visit(ScopeBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(ScopeBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of a scope annotation with the scope that implements it.
- visit(StaticInjectionRequest) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(StaticInjectionRequest) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a request to inject the static fields and methods of type.
- visit(TypeConverterBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(TypeConverterBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of type converters for matching target types.
- visit(TypeListenerBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
- visit(TypeListenerBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit an injectable type listener binding.
- visit(UntargettedBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit an untargetted binding.
- visit(UntargettedBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
- visitEagerSingleton() - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit an eager singleton or single instance.
- visitEagerSingleton() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
- visitNoScoping() - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit an unspecified or unscoped strategy.
- visitNoScoping() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
- visitOther() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-
Default visit implementation.
- visitOther(Binding<?>) - Method in class com.google.inject.grapher.TransitiveDependencyVisitor
- visitOther(Binding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
Default visit implementation.
- visitOther(Element) - Method in class com.google.inject.spi.DefaultElementVisitor
-
Default visit implementation.
- visitScope(Scope) - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit a scope instance.
- visitScope(Scope) - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
- visitScopeAnnotation(Class<? extends Annotation>) - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit a scope annotation.
- visitScopeAnnotation(Class<? extends Annotation>) - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
W
- WARNING - com.google.inject.RestrictedBindingSource.RestrictionLevel
- WEST - com.google.inject.grapher.graphviz.CompassPoint
- with() - Method in interface com.google.inject.util.Modules.OverriddenModuleBuilder
-
Deprecated.there's no reason to use
.with()
without any arguments. - with(Key<? extends HttpServlet>) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(Key<? extends HttpServlet>, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(Module...) - Method in interface com.google.inject.util.Modules.OverriddenModuleBuilder
-
See the EDSL example at
override()
. - with(HttpServlet) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(HttpServlet, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(Class<? extends HttpServlet>) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(Class<? extends HttpServlet>, Map<String, String>) - Method in interface com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
- with(Iterable<? extends Module>) - Method in interface com.google.inject.util.Modules.OverriddenModuleBuilder
-
See the EDSL example at
override()
. - withAnnotation(Annotation) - Method in class com.google.inject.Key
-
Returns a new key of the same type with the specified annotation.
- withAnnotation(Class<? extends Annotation>) - Method in class com.google.inject.Key
-
Returns a new key of the same type with the specified annotation.
- withLookups(MethodHandles.Lookup) - Method in class com.google.inject.assistedinject.FactoryModuleBuilder
-
Typically called via
withLookups(MethodHandles.lookup())
. - withoutAttributes() - Method in class com.google.inject.Key
-
Returns this key without annotation attributes, i.e.
- withPartialValue(Object) - Method in exception com.google.inject.ConfigurationException
-
Returns a copy of this configuration exception with the specified partial value.
- WithPermits(Object) - Constructor for class com.google.inject.testing.fieldbinder.BoundFieldModule.WithPermits
- withSource(Object) - Method in interface com.google.inject.Binder
-
Returns a binder that uses
source
as the reference location for configuration errors. - withSource(Object) - Method in interface com.google.inject.PrivateBinder
- withSource(List<Object>) - Method in class com.google.inject.spi.Message
-
Returns a copy of this
Message
with its sources replaced. - withSources(List<Object>) - Method in class com.google.inject.spi.ErrorDetail
-
Returns a new instance of the same
ErrorDetail
with updated sources. - withTrustedSource(GuiceInternal, Binder, Object) - Static method in class com.google.inject.spi.Elements
-
Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written using
Element.applyTo(com.google.inject.Binder)
.
All Classes All Packages