|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.binding.method.MethodKey
public class MethodKey
A helper for resolving and caching a Java method by reflection.
Constructor Summary | |
---|---|
MethodKey(java.lang.Class declaredType,
java.lang.String methodName,
java.lang.Class[] parameterTypes)
Create a new method key. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
protected java.lang.reflect.Method |
findMethodConsiderAssignableParameterTypes()
Find the keyed method using 'relaxed' typing. |
java.lang.Class |
getDeclaredType()
Return the class the method is a member of. |
java.lang.reflect.Method |
getMethod()
Returns the keyed method, resolving it if necessary via reflection. |
java.lang.String |
getMethodName()
Returns the method name. |
java.lang.Class[] |
getParameterTypes()
Returns the method parameter types. |
int |
hashCode()
|
protected java.lang.reflect.Method |
resolveMethod()
Resolve the keyed method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodKey(java.lang.Class declaredType, java.lang.String methodName, java.lang.Class[] parameterTypes)
declaredType
- the class the method is a member ofmethodName
- the method nameparameterTypes
- the method's parameter types, or null
if the method has no parametersMethod Detail |
---|
public java.lang.Class getDeclaredType()
public java.lang.String getMethodName()
public java.lang.Class[] getParameterTypes()
public java.lang.reflect.Method getMethod() throws InvalidMethodKeyException
InvalidMethodKeyException
protected java.lang.reflect.Method resolveMethod() throws InvalidMethodKeyException
InvalidMethodKeyException
protected java.lang.reflect.Method findMethodConsiderAssignableParameterTypes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |