ch.ralscha.extdirectspring.util
Class MethodInfo

java.lang.Object
  extended by 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)
           
 
Method Summary
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.
 java.lang.Class<?> getCollectionType()
           
 java.lang.String getForwardPath()
           
 java.lang.reflect.Method getMethod()
           
 java.util.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(java.lang.Class<?> clazz,
                  java.lang.reflect.Method method)
Method Detail

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 method
annotation - the annotation to look for
Returns:
the method if there is a annotated method, else null


Copyright © 2010-2011. All Rights Reserved.