ch.ralscha.extdirectspring.util
Class MethodInfo

java.lang.Object
  extended by ch.ralscha.extdirectspring.util.MethodInfo

public class MethodInfo
extends Object

Object holds information about a method like the method itself and a list of parameters

Author:
Ralph Schaer

Constructor Summary
MethodInfo(Class<?> clazz, Method method)
           
 
Method Summary
static Method findMethodWithAnnotation(Method method, Class<? extends Annotation> annotation)
          Find a method that is annotated with a specific annotation.
 Class<?> getCollectionType()
           
 String getForwardPath()
           
 Method getMethod()
           
 List<ParameterInfo> getParameters()
           
 boolean isSynchronizeOnSession()
           
 boolean isType(ExtDirectMethodType methodType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInfo

public MethodInfo(Class<?> clazz,
                  Method method)
Method Detail

getMethod

public Method getMethod()

getForwardPath

public String getForwardPath()

getParameters

public List<ParameterInfo> getParameters()

getCollectionType

public Class<?> getCollectionType()

isType

public boolean isType(ExtDirectMethodType methodType)

isSynchronizeOnSession

public boolean isSynchronizeOnSession()

findMethodWithAnnotation

public static Method findMethodWithAnnotation(Method method,
                                              Class<? extends 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 method
annotation - the annotation to look for
Returns:
the method if there is a annotated method, else null


Copyright © 2010-2012. All Rights Reserved.