Package me.ehp246.aufjms.api.inbound
Record Class InvocableTypeDefinition
java.lang.Object
java.lang.Record
me.ehp246.aufjms.api.inbound.InvocableTypeDefinition
public record InvocableTypeDefinition(Set<String> msgTypes, Class<?> type, Map<String,Method> methods, InstanceScope scope, InvocationModel model)
extends Record
The definition of a Java type that is invokable by
Message.getJMSType() and to be registered in a
InvocableTypeRegistry.
- Since:
- 1.0
- Author:
- Lei Yang
-
Constructor Summary
ConstructorsConstructorDescriptionInvocableTypeDefinition(Set<String> msgTypes, Class<?> type, Map<String, Method> methods, InstanceScope scope, InvocationModel model) Creates an instance of aInvocableTypeDefinitionrecord class. -
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.methods()Returns the value of themethodsrecord component.model()Returns the value of themodelrecord component.msgTypes()Returns the value of themsgTypesrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.Class<?>type()Returns the value of thetyperecord component.
-
Constructor Details
-
InvocableTypeDefinition
-
InvocableTypeDefinition
public InvocableTypeDefinition(Set<String> msgTypes, Class<?> type, Map<String, Method> methods, InstanceScope scope, InvocationModel model) Creates an instance of aInvocableTypeDefinitionrecord class.- Parameters:
msgTypes- the value for themsgTypesrecord componenttype- the value for thetyperecord componentmethods- the value for themethodsrecord componentscope- the value for thescoperecord componentmodel- the value for themodelrecord component
-
-
Method Details
-
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. -
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. -
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). -
msgTypes
Returns the value of themsgTypesrecord component.- Returns:
- the value of the
msgTypesrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-