Class IndependentDependency

java.lang.Object
build.codemodel.dependency.injection.AbstractDependency
build.codemodel.dependency.injection.IndependentDependency
All Implemented Interfaces:
Dependency

public final class IndependentDependency extends AbstractDependency
A Dependency independently defined outside the scope of an InjectionPoint.
Since:
Jan-2025
Author:
brian.oliver
See Also:
  • Method Details

    • typeUsage

      public build.codemodel.foundation.usage.TypeUsage typeUsage()
      Obtains the TypeUsage for the IndependentDependency.
      Returns:
      the TypeUsage
    • signature

      public String signature()
      Description copied from interface: Dependency
      Obtains the unique signature for the Dependency, consisting of the TypeName and any AnnotationTypeUsages that have been annotated with the Qualifier meta-annotation.
      Returns:
      the Signature for the Dependency
    • of

      public static IndependentDependency of(build.codemodel.foundation.usage.TypeUsage typeUsage, Function<? super build.codemodel.foundation.descriptor.Traitable, Stream<build.codemodel.foundation.usage.AnnotationTypeUsage>> qualifierAnnotationExtractor)
      Creates a IndependentDependency for the specified TypeUsage.
      Parameters:
      typeUsage - the TypeUsage
      qualifierAnnotationExtractor - a Function to extract Qualifier AnnotationTypeUsages
      Returns:
      a new IndependentDependency