Record Class DependencyEdge
java.lang.Object
java.lang.Record
build.codemodel.dependency.injection.DependencyEdge
- Record Components:
injectionPoint- theInjectionPointthat introduced the dependency, ornullin Track 1 (before injection-point threading is wired in)dependency- theDependencythat was resolved
An edge in the Track 2 binding graph. Describes a resolved dependency relationship: the
InjectionPoint that required it and the Dependency that was resolved.
Passed to BindingGraphContributor.contributeDependency(BindingNode, BindingNode, DependencyEdge) each time a dependency is
resolved at runtime. In Track 1 the injectionPoint is null; Track 2 threads the
originating injection point through the resolution path.
- Since:
- Apr-2026
- Author:
- reed.vonredwitz
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyEdge(InjectionPoint injectionPoint, Dependency dependency) Creates an instance of aDependencyEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinjectionPointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DependencyEdge
Creates an instance of aDependencyEdgerecord class.- Parameters:
injectionPoint- the value for theinjectionPointrecord componentdependency- the value for thedependencyrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
injectionPoint
Returns the value of theinjectionPointrecord component.- Returns:
- the value of the
injectionPointrecord component
-
dependency
Returns the value of thedependencyrecord component.- Returns:
- the value of the
dependencyrecord component
-