Record Class InjectionBindingKey
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.InjectionBindingKey
- Record Components:
type- public API type requested by the applicationname- optional qualifier name, or the empty string for the default binding
Immutable key used to resolve one J7M-native injected dependency.
The key is based on a public Java type plus an optional application-local qualifier. It deliberately does not contain registry record ids, transport provider names, credentials, or runtime-internal object handles. Instances are safe to expose in diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionInjectionBindingKey(Class<?> type, String name) Creates an immutable binding key. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.static InjectionBindingKeyCreates a qualified binding key.static InjectionBindingKeyCreates an unqualified binding key.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
InjectionBindingKey
-
-
Method Details
-
of
Creates an unqualified binding key.- Parameters:
type- public API type- Returns:
- binding key
-
named
Creates a qualified binding key.- Parameters:
type- public API typename- qualifier name- Returns:
- binding key
-
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). -
type
-
name
-