Record Class InjectionDiagnostic
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.InjectionDiagnostic
- Record Components:
timestamp- event timecomponent- component class nameaction- diagnostic actionresult- diagnostic resultreasonCode- stable reason codemetadata- safe redacted metadata
public record InjectionDiagnostic(Instant timestamp, String component, String action, String result, String reasonCode, Map<String,String> metadata)
extends Record
Safe diagnostic emitted by the J7M-native injector.
Diagnostics are intended for activation logs, status pages, tests, and developer tooling. The metadata is copied defensively and must contain only redacted values. Implementations must report missing dependencies, duplicate candidates, lifecycle failures, and JPMS access failures through these safe records rather than leaking constructor arguments or configuration secrets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of thereasonCoderecord component.result()Returns the value of theresultrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InjectionDiagnostic
-
-
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). -
timestamp
-
component
-
action
-
result
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
metadata
-