Top Description Methods
com.google.inject.spi

public Interface HasDependencies

Known Direct Subinterfaces
com.google.inject.spi.InstanceBinding, com.google.inject.spi.ProviderInstanceBinding, com.google.inject.spi.ProviderWithDependencies, com.google.inject.spi.ProvidesMethodBinding, com.google.inject.spi.ConstructorBinding, com.google.inject.spi.ConvertedConstantBinding, com.google.inject.spi.ExposedBinding
Known Direct Implementers
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory, com.google.inject.internal.LinkedBindingImpl, com.google.inject.internal.LinkedProviderBindingImpl, com.google.inject.internal.ProviderMethod, com.google.inject.internal.InjectorImpl.SyntheticProviderBindingImpl
Imports
java.util.Set

Implemented by bindings, providers and instances that expose their dependencies explicitly.
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Set<Dependency<?>>

Returns:

a possibly empty set
getDependencies
()

Returns the known dependencies for this type.

Method Detail

getDependenciesback to summary
public Set<Dependency<?>> getDependencies()

Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for the Injector will be included in the returned set.

Returns:Set<Dependency<?>>

a possibly empty set