Interface DependencyInfo

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
DependencyInfo.BuilderBase.DependencyInfoImpl

public interface DependencyInfo extends Prototype.Api
Aggregates the set of InjectionPointInfo's that are dependent upon a specific and common ServiceInfo definition.
See Also:
  • Method Details

    • builder

      static DependencyInfo.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static DependencyInfo.Builder builder(DependencyInfo instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • elementName

      String elementName()
      Name of the dependency location, such as a field name, or argument name.
      Returns:
      name of the element of this dependency
    • dependencyTo

      ServiceInfoCriteria dependencyTo()
      The service info describing what the injection point dependencies are dependent upon.
      Returns:
      the service info dependency
    • injectionPointDependencies

      Set<InjectionPointInfo> injectionPointDependencies()
      The set of injection points that depends upon dependencyTo().
      Returns:
      the set of dependencies
    • resolvedTo

      Optional<ServiceProvider<?>> resolvedTo()
      The ServiceProvider that this dependency is optional resolved and bound to. All dependencies from injectionPointDependencies() will be bound to this resolution.
      Returns:
      the optional resolved and bounded service provider