Class IndependentDependency
java.lang.Object
build.codemodel.dependency.injection.AbstractDependency
build.codemodel.dependency.injection.IndependentDependency
- All Implemented Interfaces:
Dependency
A
Dependency independently defined outside the scope of an InjectionPoint.- Since:
- Jan-2025
- Author:
- brian.oliver
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndependentDependencyof(build.codemodel.foundation.usage.TypeUsage typeUsage, Function<? super build.codemodel.foundation.descriptor.Traitable, Stream<build.codemodel.foundation.usage.AnnotationTypeUsage>> qualifierAnnotationExtractor) Creates aIndependentDependencyfor the specifiedTypeUsage.Obtains the unique signature for theDependency, consisting of theTypeNameand anyAnnotationTypeUsages that have been annotated with theQualifiermeta-annotation.build.codemodel.foundation.usage.TypeUsageObtains theTypeUsagefor theIndependentDependency.Methods inherited from class AbstractDependency
equals, hashCode, toString
-
Method Details
-
typeUsage
public build.codemodel.foundation.usage.TypeUsage typeUsage()Obtains theTypeUsagefor theIndependentDependency.- Returns:
- the
TypeUsage
-
signature
Description copied from interface:DependencyObtains the unique signature for theDependency, consisting of theTypeNameand anyAnnotationTypeUsages that have been annotated with theQualifiermeta-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 aIndependentDependencyfor the specifiedTypeUsage.- Parameters:
typeUsage- theTypeUsagequalifierAnnotationExtractor- aFunctionto extractQualifierAnnotationTypeUsages- Returns:
- a new
IndependentDependency
-