Class MethodKey
java.lang.Object
org.springframework.binding.method.MethodKey
- All Implemented Interfaces:
Serializable
A helper for resolving and caching a Java method by reflection.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Method
Find the keyed method using 'relaxed' typing.Class<?>
Return the class the method is a member of.Returns the keyed method, resolving it if necessary via reflection.Returns the method name.Class<?>[]
Returns the method parameter types.int
hashCode()
protected Method
Resolve the keyed method.toString()
-
Constructor Details
-
MethodKey
Create a new method key.- Parameters:
declaredType
- the class the method is a member ofmethodName
- the method nameparameterTypes
- the method's parameter types, ornull
if the method has no parameters
-
-
Method Details
-
getDeclaredType
Return the class the method is a member of. -
getMethodName
Returns the method name. -
getParameterTypes
Returns the method parameter types. Could contain null values if no type was specified for the corresponding parameter. -
getMethod
Returns the keyed method, resolving it if necessary via reflection.- Throws:
InvalidMethodKeyException
-
resolveMethod
Resolve the keyed method.- Throws:
InvalidMethodKeyException
-
findMethodConsiderAssignableParameterTypes
Find the keyed method using 'relaxed' typing. -
equals
-
hashCode
public int hashCode() -
toString
-