Record Class EntityMetadata.HandlerMethod
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.HandlerMethod
- Record Components:
executable- annotated handler method or constructorkind- model-aware handler annotation kindmodelHandler- whether the handler is declared by aModelreceiverModelType- model type of a non-static handler receiver, ornulltargetModelTypes- model types targeted by an apply return valuecollectionApplyResult- whether the apply returns an ordered collection of modelsdynamicApplyResult- whether returned model types require runtime validationmodelParameters- injected model value orEntitydependenciesemittedPayloadTypes- 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 Summary
ConstructorsConstructorDescriptionHandlerMethod(Executable executable, EntityMetadata.HandlerKind kind, boolean modelHandler, Class<?> receiverModelType, List<Class<?>> targetModelTypes, boolean collectionApplyResult, boolean dynamicApplyResult, List<EntityMetadata.ModelParameter> modelParameters, List<Class<?>> emittedPayloadTypes) Creates an instance of aHandlerMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecollectionApplyResultrecord component.booleanReturns the value of thedynamicApplyResultrecord component.Returns the value of theemittedPayloadTypesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutablerecord component.booleanWhether this handler has a statically or dynamically typed model return value.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.booleanReturns the value of themodelHandlerrecord component.Returns the value of themodelParametersrecord component.Class<?> Returns the value of thereceiverModelTyperecord component.Returns the value of thetargetModelTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandlerMethod
public HandlerMethod(Executable executable, EntityMetadata.HandlerKind kind, boolean modelHandler, Class<?> receiverModelType, List<Class<?>> targetModelTypes, boolean collectionApplyResult, boolean dynamicApplyResult, List<EntityMetadata.ModelParameter> modelParameters, List<Class<?>> emittedPayloadTypes) Creates an instance of aHandlerMethodrecord class.- Parameters:
executable- the value for theexecutablerecord componentkind- the value for thekindrecord componentmodelHandler- the value for themodelHandlerrecord componentreceiverModelType- the value for thereceiverModelTyperecord componenttargetModelTypes- the value for thetargetModelTypesrecord componentcollectionApplyResult- the value for thecollectionApplyResultrecord componentdynamicApplyResult- the value for thedynamicApplyResultrecord componentmodelParameters- the value for themodelParametersrecord componentemittedPayloadTypes- the value for theemittedPayloadTypesrecord component
-
-
Method Details
-
hasApplyResult
public boolean hasApplyResult()Whether this handler has a statically or dynamically typed model return value. -
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. -
executable
Returns the value of theexecutablerecord component.- Returns:
- the value of the
executablerecord component
-
kind
-
modelHandler
public boolean modelHandler()Returns the value of themodelHandlerrecord component.- Returns:
- the value of the
modelHandlerrecord component
-
receiverModelType
Returns the value of thereceiverModelTyperecord component.- Returns:
- the value of the
receiverModelTyperecord component
-
targetModelTypes
Returns the value of thetargetModelTypesrecord component.- Returns:
- the value of the
targetModelTypesrecord component
-
collectionApplyResult
public boolean collectionApplyResult()Returns the value of thecollectionApplyResultrecord component.- Returns:
- the value of the
collectionApplyResultrecord component
-
dynamicApplyResult
public boolean dynamicApplyResult()Returns the value of thedynamicApplyResultrecord component.- Returns:
- the value of the
dynamicApplyResultrecord component
-
modelParameters
Returns the value of themodelParametersrecord component.- Returns:
- the value of the
modelParametersrecord component
-
emittedPayloadTypes
Returns the value of theemittedPayloadTypesrecord component.- Returns:
- the value of the
emittedPayloadTypesrecord component
-