Uses of Class
com.google.inject.spi.Dependency
Packages that use Dependency
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject.jar
.Guice (sounds like "juice")
Guice service provider interface
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar
.Helper methods for working with Guice.
-
Uses of Dependency in com.google.inject
Methods in com.google.inject with parameters of type DependencyModifier and TypeMethodDescription<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 DependencyModifier and TypeFieldDescription(package private) final 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 DependencyModifier and TypeMethodDescriptionSet<Dependency<?>>
AssistedMethod.getDependencies()
Returns all non-assisted dependencies required to construct and inject the implementation.Set<Dependency<?>>
FactoryProvider.getDependencies()
Deprecated.Set<Dependency<?>>
FactoryProvider2.AssistData.getDependencies()
Set<Dependency<?>>
FactoryProvider2.getDependencies()
private Set<Dependency<?>>
FactoryProvider2.getDependencies
(InjectionPoint ctorPoint, TypeLiteral<?> implementation) Calculates all dependencies required by the implementation and constructor.private Set<Dependency<?>>
FactoryProvider2.removeAssistedDeps
(Set<Dependency<?>> deps) Return all non-assisted dependencies.Methods in com.google.inject.assistedinject with parameters of type DependencyModifier and TypeMethodDescriptionprivate boolean
FactoryProvider2.isInjectorOrAssistedProvider
(Dependency<?> dependency) Method parameters in com.google.inject.assistedinject with type arguments of type DependencyModifier and TypeMethodDescriptionprivate boolean
FactoryProvider2.isValidForOptimizedAssistedInject
(Set<Dependency<?>> dependencies, Class<?> implementation, TypeLiteral<?> factoryType) Returns true if all dependencies are suitable for the optimized version of AssistedInject.private Set<Dependency<?>>
FactoryProvider2.removeAssistedDeps
(Set<Dependency<?>> deps) Return all non-assisted dependencies.Constructor parameters in com.google.inject.assistedinject with type arguments of type DependencyModifierConstructorDescription(package private)
AssistData
(Constructor<?> constructor, Key<?> returnType, com.google.common.collect.ImmutableList<Key<?>> paramTypes, TypeLiteral<?> implementationType, Method factoryMethod, Set<Dependency<?>> dependencies, boolean optimized, List<FactoryProvider2.ThreadLocalProvider> providers) -
Uses of Dependency in com.google.inject.internal
Fields in com.google.inject.internal declared as DependencyModifier and TypeFieldDescriptionprivate Dependency<?>
InternalContext.dependency
Keeps track of the type that is currently being requested for injection.(package private) final Dependency<?>
SingleFieldInjector.dependency
private final 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 DependencyModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableSet<Dependency<?>>
ProviderMethod.dependencies
private Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealMultimapProvider.dependencies
private Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealProviderMultimapProvider.dependencies
(package private) Set<Dependency<?>>
RealMapBinder.RealMapProvider.dependencies
private 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
(package private) final Function<RealMultibinder.BindingSelection<ValueT>,
com.google.common.collect.ImmutableSet<Dependency<?>>> RealMultibinder.BaseFactory.dependenciesFn
private static final com.google.common.collect.ImmutableSet<Dependency<?>>
RealMapBinder.MODULE_DEPENDENCIES
private static final com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection.MODULE_DEPENDENCIES
private static final 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 final Set<Dependency<?>>
InternalProvisionException.warnedDependencies
Methods in com.google.inject.internal that return DependencyModifier and TypeMethodDescription(package private) Dependency<?>
InternalContext.getDependency()
(package private) Dependency<?>
RealOptionalBinder.BindingSelection.getDependency()
Returns the Dependency for the target binding, throws NoSuchElementException if no target exists.Methods in com.google.inject.internal that return types with arguments of type DependencyModifier and TypeMethodDescription(package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealOptionalBinder.BindingSelection.dependencies()
Set<Dependency<?>>
ConstructorBindingImpl.getDependencies()
Set<Dependency<?>>
ExposedBindingImpl.getDependencies()
Set<Dependency<?>>
InjectorImpl.ConvertedConstantBindingImpl.getDependencies()
Set<Dependency<?>>
InjectorImpl.SyntheticProviderBindingImpl.getDependencies()
Set<Dependency<?>>
InstanceBindingImpl.getDependencies()
Set<Dependency<?>>
LinkedBindingImpl.getDependencies()
Set<Dependency<?>>
LinkedProviderBindingImpl.getDependencies()
Set<Dependency<?>>
ProviderInstanceBindingImpl.getDependencies()
Set<Dependency<?>>
ProviderMethod.getDependencies()
Set<Dependency<?>>
RealMapBinder.ExtensionRealMapProvider.getDependencies()
Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealMultimapProvider.getDependencies()
Set<Dependency<?>>
RealMapBinder.MultimapBinder.RealProviderMultimapProvider.getDependencies()
Set<Dependency<?>>
RealMapBinder.ProviderMapEntry.getDependencies()
Set<Dependency<?>>
RealMapBinder.RealMapProvider.getDependencies()
Set<Dependency<?>>
RealMapBinder.RealProviderMapProvider.getDependencies()
Set<Dependency<?>>
RealMultibinder.BaseFactory.getDependencies()
(package private) com.google.common.collect.ImmutableSet<Dependency<?>>
RealMultibinder.BindingSelection.getDependencies()
Set<Dependency<?>>
RealOptionalBinder.JavaOptionalProvider.getDependencies()
Set<Dependency<?>>
RealOptionalBinder.JavaOptionalProviderProvider.getDependencies()
Set<Dependency<?>>
RealOptionalBinder.RealDirectTypeProvider.getDependencies()
Set<Dependency<?>>
RealOptionalBinder.RealOptionalKeyProvider.getDependencies()
Set<Dependency<?>>
RealOptionalBinder.RealOptionalProviderProvider.getDependencies()
(package private) Set<Dependency<?>>
ConstructorBindingImpl.getInternalDependencies()
Returns a set of dependencies that can be iterated over to clean up stray JIT bindings.private 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 DependencyModifier and TypeMethodDescriptionprotected T
ProviderInternalFactory.circularGet
(javax.inject.Provider<? extends T> provider, InternalContext context, Dependency<?> dependency, ProvisionListenerStackCallback<T> provisionCallback) (package private) 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) RealMapBinder.ExtensionRealMapProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealMapBinder.MultimapBinder.RealMultimapProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealMapBinder.MultimapBinder.RealProviderMultimapProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealMapBinder.ProviderMapEntry.doProvision
(InternalContext context, Dependency<?> dependency) RealMapBinder.RealMapProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealMapBinder.RealProviderMapProvider.doProvision
(InternalContext context, Dependency<?> dependency) protected com.google.common.collect.ImmutableSet<T>
RealMultibinder.ExtensionRealMultibinderProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealMultibinder.RealMultibinderCollectionOfProvidersProvider.doProvision
(InternalContext context, Dependency<?> dependency) protected com.google.common.collect.ImmutableSet<T>
RealMultibinder.RealMultibinderProvider.doProvision
(InternalContext context, Dependency<?> dependency) RealOptionalBinder.JavaOptionalProvider.doProvision
(InternalContext context, Dependency<?> currentDependency) 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) RealOptionalBinder.RealOptionalProviderProvider.doProvision
(InternalContext context, Dependency<?> dependency) private void
SourceFormatter.formatDependency
(Dependency<?> dependency) private void
SourceFormatter.formatInjectionPoint
(Dependency<?> dependency, InjectionPoint injectionPoint) BoundProviderFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) ConstantFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) ConstructorBindingImpl.Factory.get
(InternalContext context, Dependency<?> dependency, boolean linked) ExposedKeyFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) FactoryProxy.get
(InternalContext context, Dependency<?> dependency, boolean linked) InjectorShell.InjectorFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) InjectorShell.LoggerFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) InternalFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) Creates an object to be injected.InternalFactoryToInitializableAdapter.get
(InternalContext context, Dependency<?> dependency, boolean linked) InternalFactoryToProviderAdapter.get
(InternalContext context, Dependency<?> dependency, boolean linked) final T
InternalProviderInstanceBindingImpl.CyclicFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) InternalProviderInstanceBindingImpl.Factory.get
(InternalContext context, Dependency<?> dependency, boolean linked) ProvidedByInternalFactory.get
(InternalContext context, Dependency<?> dependency, boolean linked) (package private) static String
SourceFormatter.getParameterName
(Dependency<?> dependency) (package private) <T> Provider<T>
InjectorImpl.getProviderOrThrow
(Dependency<T> dependency, Errors errors) (package private) static void
InternalProvisionException.onNullInjectedIntoNonNullableDependency
(Object source, Dependency<?> dependency) Returnsvalue
if it is non-null or allowed to be null.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) void
InternalContext.setDependency
(Dependency<?> dependency) Used to set the current dependency.Method parameters in com.google.inject.internal with type arguments of type DependencyModifier and TypeMethodDescription(package private) static <T> ProviderMethod<T>
ProviderMethod.create
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, boolean skipFastClassGeneration, Annotation annotation) Creates aProviderMethod
.(package private) SingleParameterInjector<?>[]
InjectorImpl.getParametersInjectors
(List<Dependency<?>> parameters, Errors errors) Returns parameter injectors, ornull
if there are no parameters.Constructors in com.google.inject.internal with parameters of type DependencyModifierConstructorDescription(package private)
SingleParameterInjector
(Dependency<T> dependency, BindingImpl<? extends T> binding) Constructor parameters in com.google.inject.internal with type arguments of type DependencyModifierConstructorDescription(package private)
BaseFactory
(RealMultibinder.BindingSelection<ValueT> bindingSelection, Function<RealMultibinder.BindingSelection<ValueT>, com.google.common.collect.ImmutableSet<Dependency<?>>> dependenciesFn) (package private)
FastClassProviderMethod
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation, BiFunction<Object, Object[], Object> fastMethod) (package private)
ProviderMethod
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation) (package private)
ReflectionProviderMethod
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation) -
Uses of Dependency in com.google.inject.spi
Fields in com.google.inject.spi declared as DependencyFields in com.google.inject.spi with type parameters of type DependencyModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Dependency<?>>
InjectionPoint.dependencies
Methods in com.google.inject.spi that return DependencyModifier and TypeMethodDescriptionstatic <T> Dependency<T>
Returns a new dependency that is not attached to an injection point.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 DependencyModifier and TypeMethodDescriptionstatic Set<Dependency<?>>
Dependency.forInjectionPoints
(Set<InjectionPoint> injectionPoints) Returns the dependencies from the given injection points.private com.google.common.collect.ImmutableList<Dependency<?>>
InjectionPoint.forMember
(Errors errors, Member member, TypeLiteral<?> type, AnnotatedType[] annotatedTypes, Annotation[][] parameterAnnotationsPerParameter, Predicate<Integer> isParameterKotlinNullable) Set<Dependency<?>>
ConvertedConstantBinding.getDependencies()
Returns a singleton set containing only the converted key.Set<Dependency<?>>
HasDependencies.getDependencies()
Returns the known dependencies for this type.List<Dependency<?>>
InjectionPoint.getDependencies()
Returns the dependencies for this injection point.Methods in com.google.inject.spi with parameters of type DependencyModifier and TypeMethodDescription<T> Provider<T>
Elements.RecordingBinder.getProvider
(Dependency<T> dependency) Constructors in com.google.inject.spi with parameters of type Dependency -
Uses of Dependency in com.google.inject.throwingproviders
Fields in com.google.inject.throwingproviders with type parameters of type DependencyModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableSet<Dependency<?>>
CheckedProviderMethod.dependencies
Methods in com.google.inject.throwingproviders that return types with arguments of type DependencyConstructor parameters in com.google.inject.throwingproviders with type arguments of type DependencyModifierConstructorDescription(package private)
CheckedProviderMethod
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, List<Provider<?>> parameterProviders, Class<? extends Annotation> scopeAnnotation, Class<? extends CheckedProvider> checkedProvider, List<TypeLiteral<?>> exceptionTypes, boolean scopeExceptions) -
Uses of Dependency in com.google.inject.util
Fields in com.google.inject.util with type parameters of type DependencyModifier and TypeFieldDescriptionprivate final Set<Dependency<?>>
Providers.GuicifiedProviderWithDependencies.dependencies
Methods in com.google.inject.util that return types with arguments of type DependencyModifier and TypeMethodDescriptionSet<Dependency<?>>
Providers.GuicifiedProviderWithDependencies.getDependencies()
Constructor parameters in com.google.inject.util with type arguments of type DependencyModifierConstructorDescriptionprivate
GuicifiedProviderWithDependencies
(Set<Dependency<?>> dependencies, javax.inject.Provider<T> delegate)