Record Class ManagedDependency
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ManagedDependency
- Record Components:
type- required erased dependency typename- exact binding name, empty for unnamedqualifiers- exact custom qualifier identities, at most16provider- whether the edge requests a lazy ManagedProviderattributes- immutable adapter metadata, at most32 entries
public record ManagedDependency(Class<?> type, String name, List<ManagedQualifier> qualifiers, boolean provider, Map<String,String> attributes)
extends Record
Finite declared dependency edge in a generated component graph.
Attributes are bounded adapter metadata, not diagnostic text. Configuration/routing adapters
must explicitly support them; an unsupported attribute must not be silently ignored.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedDependency(Class<?> type, String name, List<ManagedQualifier> qualifiers, boolean provider) Creates an edge without adapter metadata.ManagedDependency(Class<?> type, String name, List<ManagedQualifier> qualifiers, boolean provider, Map<String, String> attributes) Validates an immutable bounded edge. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanprovider()Returns the value of theproviderrecord component.Returns the value of thequalifiersrecord component.toString()Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
ManagedDependency
public ManagedDependency(Class<?> type, String name, List<ManagedQualifier> qualifiers, boolean provider, Map<String, String> attributes) Validates an immutable bounded edge.- Parameters:
type- nonnull dependency contractname- nonnull exact name, at most256 charactersqualifiers- nonnull qualifier listprovider- lazy resolution flagattributes- nonnull bounded adapter metadata- Throws:
IllegalArgumentException- for invalid names, qualifiers or metadata bounds
-
ManagedDependency
public ManagedDependency(Class<?> type, String name, List<ManagedQualifier> qualifiers, boolean provider) Creates an edge without adapter metadata.- Parameters:
type- required dependency contractname- exact binding namequalifiers- exact qualifier identitiesprovider- lazy resolution flag
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
-
name
-
qualifiers
Returns the value of thequalifiersrecord component.- Returns:
- the value of the
qualifiersrecord component
-
provider
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-