org.apache.myfaces.extensions.validator.util
Class ReflectionUtils
java.lang.Object
org.apache.myfaces.extensions.validator.util.ReflectionUtils
public class ReflectionUtils
- extends Object
- Since:
- 1.x.1
- Author:
- Gerhard Petracek
Method Summary |
static Object |
getBaseOfPropertyChain(Object baseObject,
String propertyChain)
|
static Method |
getMethod(Class targetClass,
String targetMethodName)
|
static Method |
getMethod(Class targetClass,
String targetMethodName,
Class... parameterTypes)
|
static PropertyStorage |
getPropertyStorage()
|
static Object |
invokeMethod(Object target,
Method method)
|
static Object |
invokeMethod(Object target,
Method method,
Object... args)
|
static Object |
invokeMethodOfClass(Class target,
Method method)
|
static Object |
invokeMethodOfClass(Class target,
Method method,
Object... args)
|
static Field |
tryToGetFieldOfProperty(Class entity,
String property)
Deprecated. |
static Field |
tryToGetFieldOfProperty(PropertyStorage storage,
Class entity,
String property)
|
static Method |
tryToGetMethod(Class targetClass,
String targetMethodName)
|
static Method |
tryToGetMethod(Class targetClass,
String targetMethodName,
Class... parameterTypes)
|
static Method |
tryToGetMethodOfProperty(Class entity,
String property)
Deprecated. |
static Method |
tryToGetMethodOfProperty(PropertyStorage storage,
Class entity,
String property)
|
static Object |
tryToInvokeMethod(Object target,
Method method)
|
static Object |
tryToInvokeMethod(Object target,
Method method,
Object... args)
|
static Object |
tryToInvokeMethodOfClass(Class target,
Method method)
|
static Object |
tryToInvokeMethodOfClass(Class target,
Method method,
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 Method tryToGetMethod(Class targetClass,
String targetMethodName)
tryToGetMethod
public static Method tryToGetMethod(Class targetClass,
String targetMethodName,
Class... parameterTypes)
getMethod
public static Method getMethod(Class targetClass,
String targetMethodName)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getMethod
public static Method getMethod(Class targetClass,
String targetMethodName,
Class... parameterTypes)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
tryToInvokeMethod
public static Object tryToInvokeMethod(Object target,
Method method)
tryToInvokeMethodOfClass
public static Object tryToInvokeMethodOfClass(Class target,
Method method)
tryToInvokeMethodOfClass
public static Object tryToInvokeMethodOfClass(Class target,
Method method,
Object[] args)
invokeMethodOfClass
public static Object invokeMethodOfClass(Class target,
Method method)
throws IllegalAccessException,
InstantiationException,
InvocationTargetException
- Throws:
IllegalAccessException
InstantiationException
InvocationTargetException
invokeMethodOfClass
public static Object invokeMethodOfClass(Class target,
Method method,
Object... args)
throws IllegalAccessException,
InstantiationException,
InvocationTargetException
- Throws:
IllegalAccessException
InstantiationException
InvocationTargetException
tryToInvokeMethod
public static Object tryToInvokeMethod(Object target,
Method method,
Object... args)
invokeMethod
public static Object invokeMethod(Object target,
Method method)
throws InvocationTargetException,
IllegalAccessException
- Throws:
InvocationTargetException
IllegalAccessException
invokeMethod
public static Object invokeMethod(Object target,
Method method,
Object... args)
throws InvocationTargetException,
IllegalAccessException
- Throws:
InvocationTargetException
IllegalAccessException
getBaseOfPropertyChain
public static Object getBaseOfPropertyChain(Object baseObject,
String propertyChain)
getPropertyStorage
public static PropertyStorage getPropertyStorage()
tryToGetMethodOfProperty
@Deprecated
public static Method tryToGetMethodOfProperty(Class entity,
String property)
- Deprecated.
tryToGetMethodOfProperty
public static Method tryToGetMethodOfProperty(PropertyStorage storage,
Class entity,
String property)
tryToGetFieldOfProperty
@Deprecated
public static Field tryToGetFieldOfProperty(Class entity,
String property)
- Deprecated.
tryToGetFieldOfProperty
public static Field tryToGetFieldOfProperty(PropertyStorage storage,
Class entity,
String property)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.