org.apache.myfaces.extensions.validator.util
Class ReflectionUtils
java.lang.Object
org.apache.myfaces.extensions.validator.util.ReflectionUtils
public class ReflectionUtils
- extends java.lang.Object
- Since:
- 1.x.1
- Author:
- Gerhard Petracek
Method Summary |
static java.lang.Object |
getBaseOfPropertyChain(java.lang.Object baseObject,
java.lang.String propertyChain)
|
static java.lang.reflect.Method |
getMethod(java.lang.Class targetClass,
java.lang.String targetMethodName)
|
static java.lang.reflect.Method |
getMethod(java.lang.Class targetClass,
java.lang.String targetMethodName,
java.lang.Class... parameterTypes)
|
static java.lang.Object |
invokeMethod(java.lang.Object target,
java.lang.reflect.Method method)
|
static java.lang.Object |
invokeMethod(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object... args)
|
static java.lang.Object |
invokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method)
|
static java.lang.Object |
invokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method,
java.lang.Object... args)
|
static java.lang.reflect.Method |
tryToGetMethod(java.lang.Class targetClass,
java.lang.String targetMethodName)
|
static java.lang.reflect.Method |
tryToGetMethod(java.lang.Class targetClass,
java.lang.String targetMethodName,
java.lang.Class... parameterTypes)
|
static java.lang.Object |
tryToInvokeMethod(java.lang.Object target,
java.lang.reflect.Method method)
|
static java.lang.Object |
tryToInvokeMethod(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object... args)
|
static java.lang.Object |
tryToInvokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method)
|
static java.lang.Object |
tryToInvokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtils
public ReflectionUtils()
tryToGetMethod
public static java.lang.reflect.Method tryToGetMethod(java.lang.Class targetClass,
java.lang.String targetMethodName)
tryToGetMethod
public static java.lang.reflect.Method tryToGetMethod(java.lang.Class targetClass,
java.lang.String targetMethodName,
java.lang.Class... parameterTypes)
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Class targetClass,
java.lang.String targetMethodName)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Class targetClass,
java.lang.String targetMethodName,
java.lang.Class... parameterTypes)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
tryToInvokeMethod
public static java.lang.Object tryToInvokeMethod(java.lang.Object target,
java.lang.reflect.Method method)
tryToInvokeMethodOfClass
public static java.lang.Object tryToInvokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method)
tryToInvokeMethodOfClass
public static java.lang.Object tryToInvokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method,
java.lang.Object[] args)
invokeMethodOfClass
public static java.lang.Object invokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
invokeMethodOfClass
public static java.lang.Object invokeMethodOfClass(java.lang.Class target,
java.lang.reflect.Method method,
java.lang.Object... args)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
tryToInvokeMethod
public static java.lang.Object tryToInvokeMethod(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object... args)
invokeMethod
public static java.lang.Object invokeMethod(java.lang.Object target,
java.lang.reflect.Method method)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
invokeMethod
public static java.lang.Object invokeMethod(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object... args)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
getBaseOfPropertyChain
public static java.lang.Object getBaseOfPropertyChain(java.lang.Object baseObject,
java.lang.String propertyChain)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.