Uses of Class
com.google.inject.spi.Dependency
-
Packages that use Dependency Package Description com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.com.google.inject.assistedinject Extension for combining factory interfaces with injection; this extension requiresguice-assistedinject.jar
.com.google.inject.internal Guice (sounds like "juice")com.google.inject.spi Guice service provider interfacecom.google.inject.throwingproviders Extension for injecting objects that may throw at provision time; this extension requiresguice-throwingproviders.jar
.com.google.inject.util Helper methods for working with Guice. -
-
Uses of Dependency in com.google.inject
Methods in com.google.inject with parameters of type Dependency Modifier and Type Method Description <T> Provider<T>
Binder. getProvider(Dependency<T> dependency)
Returns the provider used to obtain instances for the given injection key. -
Uses of Dependency in com.google.inject.assistedinject
Fields in com.google.inject.assistedinject with type parameters of type Dependency Modifier and Type Field Description (package private) java.util.Set<Dependency<?>>
FactoryProvider2.AssistData. dependencies
All non-assisted dependencies required by this method.Methods in com.google.inject.assistedinject that return types with arguments of type Dependency Modifier and Type Method Description java.util.Set<Dependency<?>>
AssistedMethod. getDependencies()
Returns all non-assisted dependencies required to construct and inject the implementation.java.util.Set<Dependency<?>>
FactoryProvider. getDependencies()
Deprecated.java.util.Set<Dependency<?>>
FactoryProvider2.AssistData. getDependencies()
java.util.Set<Dependency<?>>
FactoryProvider2. getDependencies()
private java.util.Set<Dependency<?>>
FactoryProvider2. getDependencies(InjectionPoint ctorPoint, TypeLiteral<?> implementation)
Calculates all dependencies required by the implementation and constructor.private java.util.Set<Dependency<?>>
FactoryProvider2. removeAssistedDeps(java.util.Set<Dependency<?>> deps)
Return all non-assisted dependencies.Methods in com.google.inject.assistedinject with parameters of type Dependency Modifier and Type Method Description private boolean
FactoryProvider2. isInjectorOrAssistedProvider(Dependency<?> dependency)
Method parameters in com.google.inject.assistedinject with type arguments of type Dependency Modifier and Type Method Description private boolean
FactoryProvider2. isValidForOptimizedAssistedInject(java.util.Set<Dependency<?>> dependencies, java.lang.Class<?> implementation, TypeLiteral<?> factoryType)
Returns true if all dependencies are suitable for the optimized version of AssistedInject.private java.util.Set<Dependency<?>>
FactoryProvider2. removeAssistedDeps(java.util.Set<Dependency<?>> deps)
Return all non-assisted dependencies.Constructor parameters in com.google.inject.assistedinject with type arguments of type Dependency Constructor Description AssistData(java.lang.reflect.Constructor<?> constructor, Key<?> returnType, com.google.common.collect.ImmutableList<Key<?>> paramTypes, TypeLiteral<?> implementationType, java.lang.reflect.Method factoryMethod, java.util.Set<Dependency<?>> dependencies, boolean optimized, java.util.List<FactoryProvider2.ThreadLocalProvider> providers)
-
Uses of Dependency in com.google.inject.internal
Fields in com.google.inject.internal declared as Dependency Modifier and Type Field Description private Dependency<?>
InternalContext. dependency
Keeps track of the type that is currently being requested for injection.(package private) Dependency<?>
SingleFieldInjector. dependency
private Dependency<T>
SingleParameterInjector. dependency
private Dependency<?>
RealOptionalBinder.JavaOptionalProvider. targetDependency
private Dependency<?>
RealOptionalBinder.RealOptionalKeyProvider. targetDependency
Fields in com.google.inject.internal with type parameters of type Dependency Modifier and Type Field Description private com.google.common.collect.ImmutableSet<Dependency<?>>
ProviderMethod. dependencies
private java.util.Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealMultimapProvider. dependencies
private java.util.Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealProviderMultimapProvider. dependencies
private java.util.Set<Dependency<?>>
RealMapBinder.RealMapProvider. dependencies
private java.util.Set<Dependency<?>>
RealMapBinder.RealProviderMapProvider. dependencies
private com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection. dependencies
private com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection. dependencies
private static com.google.common.collect.ImmutableSet<Dependency<?>>
RealMapBinder. MODULE_DEPENDENCIES
private static com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection. MODULE_DEPENDENCIES
private static com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection. MODULE_DEPENDENCIES
private com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection. providerDependencies
private com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection. providerDependencies
private static java.util.Set<Dependency<?>>
InternalProvisionException. warnedDependencies
Methods in com.google.inject.internal that return Dependency Modifier and Type Method Description (package private) Dependency<?>
InternalContext. getDependency()
(package private) Dependency<?>
RealOptionalBinder.BindingSelection. getDependency()
Returns the Dependency for the target binding, throws NoSuchElementException if no target exists.(package private) Dependency<?>
InternalContext. pushDependency(Dependency<?> dependency, java.lang.Object source)
Sets the new current dependency & adds it to the state.Methods in com.google.inject.internal that return types with arguments of type Dependency Modifier and Type Method Description (package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection. dependencies()
java.util.Set<Dependency<?>>
ConstructorBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
ExposedBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
InjectorImpl.ConvertedConstantBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
InjectorImpl.SyntheticProviderBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
InstanceBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
LinkedBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
LinkedProviderBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
ProviderInstanceBindingImpl. getDependencies()
java.util.Set<Dependency<?>>
ProviderMethod. getDependencies()
java.util.Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealMultimapProvider. getDependencies()
java.util.Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealProviderMultimapProvider. getDependencies()
java.util.Set<Dependency<?>>
RealMapBinder.ProviderMapEntry. getDependencies()
java.util.Set<Dependency<?>>
RealMapBinder.RealMapProvider. getDependencies()
java.util.Set<Dependency<?>>
RealMapBinder.RealProviderMapProvider. getDependencies()
(package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection. getDependencies()
java.util.Set<Dependency<?>>
RealMultibinder.RealMultibinderCollectionOfProvidersProvider. getDependencies()
java.util.Set<Dependency<?>>
RealMultibinder.RealMultibinderProvider. getDependencies()
java.util.Set<Dependency<?>>
RealOptionalBinder.JavaOptionalProvider. getDependencies()
java.util.Set<Dependency<?>>
RealOptionalBinder.JavaOptionalProviderProvider. getDependencies()
java.util.Set<Dependency<?>>
RealOptionalBinder.RealDirectTypeProvider. getDependencies()
java.util.Set<Dependency<?>>
RealOptionalBinder.RealOptionalKeyProvider. getDependencies()
java.util.Set<Dependency<?>>
RealOptionalBinder.RealOptionalProviderProvider. getDependencies()
(package private) java.util.Set<Dependency<?>>
ConstructorBindingImpl. getInternalDependencies()
Returns a set of dependencies that can be iterated over to clean up stray JIT bindings.private java.util.Set<Dependency<?>>
InjectorImpl. getInternalDependencies(BindingImpl<?> binding)
Safely gets the dependencies of possibly not initialized bindings.(package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection. getProviderDependencies()
(package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection. providerDependencies()
Methods in com.google.inject.internal with parameters of type Dependency Modifier and Type Method Description protected T
ProviderInternalFactory. circularGet(javax.inject.Provider<? extends T> provider, InternalContext context, Dependency<?> dependency, ProvisionListenerStackCallback<T> provisionCallback)
(package private) java.lang.Object
ConstructorInjector. construct(InternalContext context, Dependency<?> dependency, ProvisionListenerStackCallback<T> provisionCallback)
Construct an instance.(package private) <T> SingleParameterInjector<T>
InjectorImpl. createParameterInjector(Dependency<T> dependency, Errors errors)
protected abstract T
InternalProviderInstanceBindingImpl.Factory. doProvision(InternalContext context, Dependency<?> dependency)
Creates an object to be injected.protected T
ProviderMethod. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Map<K,java.util.Set<V>>
RealMapBinder.MultimapBinder.RealMultimapProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Map<K,java.util.Set<Provider<V>>>
RealMapBinder.MultimapBinder.RealProviderMultimapProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Map.Entry<K,Provider<V>>
RealMapBinder.ProviderMapEntry. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Map<K,V>
RealMapBinder.RealMapProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Map<K,Provider<V>>
RealMapBinder.RealProviderMapProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Collection<Provider<T>>
RealMultibinder.RealMultibinderCollectionOfProvidersProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Set<T>
RealMultibinder.RealMultibinderProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected java.util.Optional<T>
RealOptionalBinder.JavaOptionalProvider. doProvision(InternalContext context, Dependency<?> currentDependency)
protected java.util.Optional<Provider<T>>
RealOptionalBinder.JavaOptionalProviderProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected T
RealOptionalBinder.RealDirectTypeProvider. doProvision(InternalContext context, Dependency<?> dependency)
protected com.google.common.base.Optional<T>
RealOptionalBinder.RealOptionalKeyProvider. doProvision(InternalContext context, Dependency<?> currentDependency)
protected com.google.common.base.Optional<Provider<T>>
RealOptionalBinder.RealOptionalProviderProvider. doProvision(InternalContext context, Dependency<?> dependency)
private static void
Messages. formatInjectionPoint(java.util.Formatter formatter, Dependency<?> dependency, InjectionPoint injectionPoint, ElementSource elementSource)
(package private) static java.lang.String
Messages. formatParameter(Dependency<?> dependency)
T
BoundProviderFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
ConstantFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
ConstructorBindingImpl.Factory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
ExposedKeyFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
FactoryProxy. get(InternalContext context, Dependency<?> dependency, boolean linked)
Injector
InjectorShell.InjectorFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
java.util.logging.Logger
InjectorShell.LoggerFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
InternalFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
Creates an object to be injected.T
InternalFactoryToInitializableAdapter. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
InternalFactoryToProviderAdapter. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
InternalProviderInstanceBindingImpl.CyclicFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
InternalProviderInstanceBindingImpl.Factory. get(InternalContext context, Dependency<?> dependency, boolean linked)
T
ProvidedByInternalFactory. get(InternalContext context, Dependency<?> dependency, boolean linked)
(package private) <T> Provider<T>
InjectorImpl. getProviderOrThrow(Dependency<T> dependency, Errors errors)
(package private) static void
InternalProvisionException. onNullInjectedIntoNonNullableDependency(java.lang.Object source, Dependency<?> dependency)
Returnsvalue
if it is non-null or allowed to be null.(package private) void
InternalContext. popStateAndSetDependency(Dependency<?> newDependency)
Pops the current state & sets the new dependency.protected T
BoundProviderFactory. provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
protected T
InternalFactoryToInitializableAdapter. provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
private T
InternalProviderInstanceBindingImpl.CyclicFactory. provision(Dependency<?> dependency, InternalContext context, ConstructionContext<T> constructionContext)
protected T
ProvidedByInternalFactory. provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
protected T
ProviderInternalFactory. provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
Provisions a new instance.(package private) Dependency<?>
InternalContext. pushDependency(Dependency<?> dependency, java.lang.Object source)
Sets the new current dependency & adds it to the state.Method parameters in com.google.inject.internal with type arguments of type Dependency Modifier and Type Method Description (package private) static <T> ProviderMethod<T>
ProviderMethod. create(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, boolean skipFastClassGeneration, java.lang.annotation.Annotation annotation)
Creates aProviderMethod
.(package private) SingleParameterInjector<?>[]
InjectorImpl. getParametersInjectors(java.util.List<Dependency<?>> parameters, Errors errors)
Returns parameter injectors, ornull
if there are no parameters.Constructors in com.google.inject.internal with parameters of type Dependency Constructor Description SingleParameterInjector(Dependency<T> dependency, BindingImpl<? extends T> binding)
Constructor parameters in com.google.inject.internal with type arguments of type Dependency Constructor Description FastClassProviderMethod(Key<T> key, net.sf.cglib.reflect.FastClass fc, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
ProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
ReflectionProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
-
Uses of Dependency in com.google.inject.spi
Fields in com.google.inject.spi declared as Dependency Modifier and Type Field Description private Dependency<?>
DependencyAndSource. dependency
Deprecated.private Dependency<T>
ProviderLookup. dependency
Fields in com.google.inject.spi with type parameters of type Dependency Modifier and Type Field Description private com.google.common.collect.ImmutableList<Dependency<?>>
InjectionPoint. dependencies
Methods in com.google.inject.spi that return Dependency Modifier and Type Method Description static <T> Dependency<T>
Dependency. get(Key<T> key)
Returns a new dependency that is not attached to an injection point.Dependency<?>
DependencyAndSource. getDependency()
Deprecated.Returns the Dependency, if one exists.Dependency<T>
ProviderLookup. getDependency()
private <T> Dependency<T>
InjectionPoint. newDependency(Key<T> key, boolean allowsNull, int parameterIndex)
Methods in com.google.inject.spi that return types with arguments of type Dependency Modifier and Type Method Description static java.util.Set<Dependency<?>>
Dependency. forInjectionPoints(java.util.Set<InjectionPoint> injectionPoints)
Returns the dependencies from the given injection points.private com.google.common.collect.ImmutableList<Dependency<?>>
InjectionPoint. forMember(java.lang.reflect.Member member, TypeLiteral<?> type, java.lang.annotation.Annotation[][] paramterAnnotations)
java.util.Set<Dependency<?>>
ConvertedConstantBinding. getDependencies()
Returns a singleton set containing only the converted key.java.util.Set<Dependency<?>>
HasDependencies. getDependencies()
Returns the known dependencies for this type.java.util.List<Dependency<?>>
InjectionPoint. getDependencies()
Returns the dependencies for this injection point.Methods in com.google.inject.spi with parameters of type Dependency Modifier and Type Method Description <T> Provider<T>
Elements.RecordingBinder. getProvider(Dependency<T> dependency)
Constructors in com.google.inject.spi with parameters of type Dependency Constructor Description DependencyAndSource(Dependency<?> dependency, java.lang.Object source)
Deprecated.ProviderLookup(java.lang.Object source, Dependency<T> dependency)
-
Uses of Dependency in com.google.inject.throwingproviders
Fields in com.google.inject.throwingproviders with type parameters of type Dependency Modifier and Type Field Description private com.google.common.collect.ImmutableSet<Dependency<?>>
CheckedProviderMethod. dependencies
Methods in com.google.inject.throwingproviders that return types with arguments of type Dependency Modifier and Type Method Description java.util.Set<Dependency<?>>
CheckedProviderMethod. getDependencies()
Constructor parameters in com.google.inject.throwingproviders with type arguments of type Dependency Constructor Description CheckedProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.util.List<Provider<?>> parameterProviders, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.Class<? extends CheckedProvider> checkedProvider, java.util.List<TypeLiteral<?>> exceptionTypes, boolean scopeExceptions)
-
Uses of Dependency in com.google.inject.util
Fields in com.google.inject.util with type parameters of type Dependency Modifier and Type Field Description private java.util.Set<Dependency<?>>
Providers.GuicifiedProviderWithDependencies. dependencies
Methods in com.google.inject.util that return types with arguments of type Dependency Modifier and Type Method Description java.util.Set<Dependency<?>>
Providers.GuicifiedProviderWithDependencies. getDependencies()
Constructor parameters in com.google.inject.util with type arguments of type Dependency Constructor Description GuicifiedProviderWithDependencies(java.util.Set<Dependency<?>> dependencies, javax.inject.Provider<T> delegate)
-