Record Class DependencyInjectionError

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.configuration.validator.DependencyInjectionError
Record Components:
rootBean - The root reachable bean where validation started
bean - The missing, disabled, or circular bean type involved in the failure
message - Human-readable error detail
injectionPoint - Injection point description (constructor, field, or method)
disabledReason - Optional reason reported by Micronaut for disabled beans
failingPath - Graph path from root bean to the failure
snippet - Best-effort snippet representing the failing injection point
snippetLanguage - Snippet language identifier

@Introspected public record DependencyInjectionError(String rootBean, String bean, String message, @Nullable String injectionPoint, @Nullable String disabledReason, List<String> failingPath, @Nullable String snippet, @Nullable String snippetLanguage) extends Record
Describes one dependency-injection validation failure.
  • Constructor Details

    • DependencyInjectionError

      public DependencyInjectionError(String rootBean, String bean, String message, @Nullable String injectionPoint, @Nullable String disabledReason, List<String> failingPath, @Nullable String snippet, @Nullable String snippetLanguage)
      Creates an immutable dependency-injection error.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rootBean

      public String rootBean()
      Returns the value of the rootBean record component.
      Returns:
      the value of the rootBean record component
    • bean

      public String bean()
      Returns the value of the bean record component.
      Returns:
      the value of the bean record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • injectionPoint

      public @Nullable String injectionPoint()
      Returns the value of the injectionPoint record component.
      Returns:
      the value of the injectionPoint record component
    • disabledReason

      public @Nullable String disabledReason()
      Returns the value of the disabledReason record component.
      Returns:
      the value of the disabledReason record component
    • failingPath

      public List<String> failingPath()
      Returns the value of the failingPath record component.
      Returns:
      the value of the failingPath record component
    • snippet

      public @Nullable String snippet()
      Returns the value of the snippet record component.
      Returns:
      the value of the snippet record component
    • snippetLanguage

      public @Nullable String snippetLanguage()
      Returns the value of the snippetLanguage record component.
      Returns:
      the value of the snippetLanguage record component