Record Class EntityMetadata.HandlerMethod

java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.HandlerMethod
Record Components:
executable - annotated handler method or constructor
kind - model-aware handler annotation kind
modelHandler - whether the handler is declared by a Model
receiverModelType - model type of a non-static handler receiver, or null
targetModelTypes - model types targeted by an apply return value
collectionApplyResult - whether the apply returns an ordered collection of models
dynamicApplyResult - whether returned model types require runtime validation
modelParameters - injected model value or Entity dependencies
emittedPayloadTypes - statically known payload types emitted by an interceptor
Enclosing class:
EntityMetadata

public static record EntityMetadata.HandlerMethod(Executable executable, EntityMetadata.HandlerKind kind, boolean modelHandler, Class<?> receiverModelType, List<Class<?>> targetModelTypes, boolean collectionApplyResult, boolean dynamicApplyResult, List<EntityMetadata.ModelParameter> modelParameters, List<Class<?>> emittedPayloadTypes) extends Record
Model-aware handler descriptor.
  • Constructor Details

  • Method Details

    • hasApplyResult

      public boolean hasApplyResult()
      Whether this handler has a statically or dynamically typed model return value.
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • executable

      public Executable executable()
      Returns the value of the executable record component.
      Returns:
      the value of the executable record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • modelHandler

      public boolean modelHandler()
      Returns the value of the modelHandler record component.
      Returns:
      the value of the modelHandler record component
    • receiverModelType

      public Class<?> receiverModelType()
      Returns the value of the receiverModelType record component.
      Returns:
      the value of the receiverModelType record component
    • targetModelTypes

      public List<Class<?>> targetModelTypes()
      Returns the value of the targetModelTypes record component.
      Returns:
      the value of the targetModelTypes record component
    • collectionApplyResult

      public boolean collectionApplyResult()
      Returns the value of the collectionApplyResult record component.
      Returns:
      the value of the collectionApplyResult record component
    • dynamicApplyResult

      public boolean dynamicApplyResult()
      Returns the value of the dynamicApplyResult record component.
      Returns:
      the value of the dynamicApplyResult record component
    • modelParameters

      public List<EntityMetadata.ModelParameter> modelParameters()
      Returns the value of the modelParameters record component.
      Returns:
      the value of the modelParameters record component
    • emittedPayloadTypes

      public List<Class<?>> emittedPayloadTypes()
      Returns the value of the emittedPayloadTypes record component.
      Returns:
      the value of the emittedPayloadTypes record component