Record Class MethodArgsHolder
java.lang.Object
java.lang.Record
org.springframework.integration.gateway.MethodArgsHolder
- Record Components:
method- the method being invoked.args- the arguments for the method invocation.
Simple wrapper class containing a
Method and an object
array containing the arguments for an invocation of that method.
For example, used by a MethodArgsMessageMapper with this generic
type to provide custom argument mapping when creating a message
in a GatewayProxyFactoryBean.- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionMethodArgsHolder(Method method, Object[] args) Creates an instance of aMethodArgsHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionObject[]args()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodArgsHolder
-
-
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). -
method
-
args
-