ch.ralscha.extdirectspring.util
Class MethodInfo
java.lang.Object
ch.ralscha.extdirectspring.util.MethodInfo
public class MethodInfo
- extends java.lang.Object
Object holds information about a method like the method itself and a list of
parameters
- Author:
- Ralph Schaer
|
Constructor Summary |
MethodInfo(java.lang.Class<?> clazz,
java.lang.reflect.Method method)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInfo
public MethodInfo(java.lang.Class<?> clazz,
java.lang.reflect.Method method)
getMethod
public java.lang.reflect.Method getMethod()
getForwardPath
public java.lang.String getForwardPath()
getParameters
public java.util.List<ParameterInfo> getParameters()
getCollectionType
public java.lang.Class<?> getCollectionType()
isType
public boolean isType(ExtDirectMethodType methodType)
isSynchronizeOnSession
public boolean isSynchronizeOnSession()
findMethodWithAnnotation
public static java.lang.reflect.Method findMethodWithAnnotation(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
- Find a method that is annotated with a specific annotation. Starts with the
method and goes up to the superclasses of the class.
- Parameters:
method - the starting methodannotation - the annotation to look for
- Returns:
- the method if there is a annotated method, else null
Copyright © 2010-2011. All Rights Reserved.