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.dependenciesAll 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 booleanFactoryProvider2.isInjectorOrAssistedProvider(Dependency<?> dependency) Method parameters in com.google.inject.assistedinject with type arguments of type DependencyModifier and TypeMethodDescriptionprivate booleanFactoryProvider2.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.dependencyKeeps track of the type that is currently being requested for injection.(package private) final Dependency<?>SingleFieldInjector.dependencyprivate final Dependency<T>SingleParameterInjector.dependencyprivate Dependency<?>RealOptionalBinder.JavaOptionalProvider.targetDependencyprivate Dependency<?>RealOptionalBinder.RealOptionalKeyProvider.targetDependencyFields in com.google.inject.internal with type parameters of type DependencyModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableSet<Dependency<?>>ProviderMethod.dependenciesprivate Set<Dependency<?>>RealMapBinder.MultimapBinder.RealMultimapProvider.dependenciesprivate Set<Dependency<?>>RealMapBinder.MultimapBinder.RealProviderMultimapProvider.dependenciesprivate Set<Dependency<?>>RealMapBinder.RealMapProvider.dependenciesprivate Set<Dependency<?>>RealMapBinder.RealProviderMapProvider.dependenciesprivate com.google.common.collect.ImmutableSet<Dependency<?>>RealMultibinder.BindingSelection.dependenciesprivate com.google.common.collect.ImmutableSet<Dependency<?>>RealOptionalBinder.BindingSelection.dependenciesprivate static final com.google.common.collect.ImmutableSet<Dependency<?>>RealMapBinder.MODULE_DEPENDENCIESprivate static final com.google.common.collect.ImmutableSet<Dependency<?>>RealMultibinder.BindingSelection.MODULE_DEPENDENCIESprivate static final com.google.common.collect.ImmutableSet<Dependency<?>>RealOptionalBinder.BindingSelection.MODULE_DEPENDENCIESprivate com.google.common.collect.ImmutableSet<Dependency<?>>RealMultibinder.BindingSelection.providerDependenciesprivate com.google.common.collect.ImmutableSet<Dependency<?>>RealOptionalBinder.BindingSelection.providerDependenciesprivate static final Set<Dependency<?>>InternalProvisionException.warnedDependenciesMethods 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.(package private) Dependency<?>InternalContext.pushDependency(Dependency<?> dependency, 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 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.MultimapBinder.RealMultimapProvider.getDependencies()Set<Dependency<?>>RealMapBinder.MultimapBinder.RealProviderMultimapProvider.getDependencies()Set<Dependency<?>>RealMapBinder.ProviderMapEntry.getDependencies()Set<Dependency<?>>RealMapBinder.RealMapProvider.getDependencies()Set<Dependency<?>>RealMapBinder.RealProviderMapProvider.getDependencies()(package private) com.google.common.collect.ImmutableSet<Dependency<?>>RealMultibinder.BindingSelection.getDependencies()Set<Dependency<?>>RealMultibinder.RealMultibinderCollectionOfProvidersProvider.getDependencies()Set<Dependency<?>>RealMultibinder.RealMultibinderProvider.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 TProviderInternalFactory.circularGet(javax.inject.Provider<? extends T> provider, InternalContext context, Dependency<?> dependency, ProvisionListenerStackCallback<T> provisionCallback) (package private) ObjectConstructorInjector.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 TInternalProviderInstanceBindingImpl.Factory.doProvision(InternalContext context, Dependency<?> dependency) Creates an object to be injected.protected TProviderMethod.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 Collection<Provider<T>>RealMultibinder.RealMultibinderCollectionOfProvidersProvider.doProvision(InternalContext context, Dependency<?> dependency) RealMultibinder.RealMultibinderProvider.doProvision(InternalContext context, Dependency<?> dependency) RealOptionalBinder.JavaOptionalProvider.doProvision(InternalContext context, Dependency<?> currentDependency) RealOptionalBinder.JavaOptionalProviderProvider.doProvision(InternalContext context, Dependency<?> dependency) protected TRealOptionalBinder.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 static voidMessages.formatInjectionPoint(Formatter formatter, Dependency<?> dependency, InjectionPoint injectionPoint, ElementSource elementSource) (package private) static StringMessages.formatParameter(Dependency<?> dependency) 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 TInternalProviderInstanceBindingImpl.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) <T> Provider<T>InjectorImpl.getProviderOrThrow(Dependency<T> dependency, Errors errors) (package private) static voidInternalProvisionException.onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency) Returnsvalueif it is non-null or allowed to be null.(package private) voidInternalContext.popStateAndSetDependency(Dependency<?> newDependency) Pops the current state & sets the new dependency.protected TBoundProviderFactory.provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext) protected TInternalFactoryToInitializableAdapter.provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext) private TInternalProviderInstanceBindingImpl.CyclicFactory.provision(Dependency<?> dependency, InternalContext context, ConstructionContext<T> constructionContext) protected TProvidedByInternalFactory.provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext) protected TProviderInternalFactory.provision(javax.inject.Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext) Provisions a new instance.(package private) Dependency<?>InternalContext.pushDependency(Dependency<?> dependency, Object source) Sets the new current dependency & adds it to the state.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, ornullif 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 DependencyModifierConstructorDescriptionprivateProviderMethod(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 DependencyModifier and TypeFieldDescriptionprivate final Dependency<?>DependencyAndSource.dependencyDeprecated.private final Dependency<T>ProviderLookup.dependencyFields in com.google.inject.spi with type parameters of type DependencyModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Dependency<?>>InjectionPoint.dependenciesMethods 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.Dependency<?>DependencyAndSource.getDependency()Deprecated.Returns the Dependency, if one exists.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(Member member, TypeLiteral<?> type, Annotation[][] paramterAnnotations) 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 DependencyModifierConstructorDescriptionDependencyAndSource(Dependency<?> dependency, Object source) Deprecated.ProviderLookup(Object source, Dependency<T> 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.dependenciesMethods 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.dependenciesMethods 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 DependencyModifierConstructorDescriptionprivateGuicifiedProviderWithDependencies(Set<Dependency<?>> dependencies, javax.inject.Provider<T> delegate)