org.springframework.webflow.util
Class ReflectionUtils

java.lang.Object
  extended by org.springframework.webflow.util.ReflectionUtils

public class ReflectionUtils
extends java.lang.Object

Simple utility class for working with the java reflection API. Only intended for internal use. Will likely disappear in a future release of Spring Web Flow and simply rely on ReflectionUtils if necessary.

Author:
Keith Donald

Constructor Summary
ReflectionUtils()
           
 
Method Summary
static java.lang.Object invokeMethod(java.lang.reflect.Method method, java.lang.Object target)
          Invoke the specified Method against the supplied target object with no arguments.
static java.lang.Object invokeMethod(java.lang.reflect.Method method, java.lang.Object target, java.lang.Object[] args)
          Invoke the specified Method against the supplied target object with the supplied arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils

public ReflectionUtils()
Method Detail

invokeMethod

public static java.lang.Object invokeMethod(java.lang.reflect.Method method,
                                            java.lang.Object target)
                                     throws java.lang.RuntimeException
Invoke the specified Method against the supplied target object with no arguments. The target object can be null when invoking a static Method. All exceptions are treated as fatal and will be converted to unchecked exceptions.

Throws:
java.lang.RuntimeException - when something goes wrong invoking the method or when the method itself throws an exception
See Also:
invokeMethod(java.lang.reflect.Method, Object, Object[])

invokeMethod

public static java.lang.Object invokeMethod(java.lang.reflect.Method method,
                                            java.lang.Object target,
                                            java.lang.Object[] args)
                                     throws java.lang.RuntimeException
Invoke the specified Method against the supplied target object with the supplied arguments. The target object can be null when invoking a static Method. All exceptions are treated as fatal and will be converted to unchecked exceptions.

Throws:
java.lang.RuntimeException - when something goes wrong invoking the method or when the method itself throws an exception
See Also:
invokeMethod(java.lang.reflect.Method, Object, Object[])


Copyright © 2004-2007. All Rights Reserved.