org.sqlproc.engine.impl
Class BeanUtils
java.lang.Object
org.sqlproc.engine.impl.BeanUtils
public class BeanUtils
- extends Object
Bean utilities.
- Author:
- Vladimir Hudec
Field Summary |
(package private) static org.slf4j.Logger |
logger
The internal slf4j logger. |
Method Summary |
static boolean |
checkProperty(Object bean,
String name)
|
static Class<?> |
getFieldType(Class<?> clazz,
String name)
|
static Method |
getGetter(Class<?> clazz,
String attributeName)
|
static Method |
getGetter(Object bean,
String attributeName)
|
static
|
getInstance(Class<E> clazz)
|
static Object |
getProperty(Object bean,
String name)
|
static Method |
getSetter(Object bean,
String attributeName,
Class<?>... classes)
|
static Object |
invokeMethod(Object obj,
String methodName,
Object[] args)
|
static void |
setProperty(Object bean,
String name,
Object value)
|
static Object |
simpleInvokeMethod(Method m,
Object obj,
Object param)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static final org.slf4j.Logger logger
- The internal slf4j logger.
BeanUtils
public BeanUtils()
getInstance
public static <E> E getInstance(Class<E> clazz)
getFieldType
public static Class<?> getFieldType(Class<?> clazz,
String name)
getProperty
public static Object getProperty(Object bean,
String name)
checkProperty
public static boolean checkProperty(Object bean,
String name)
getGetter
public static Method getGetter(Class<?> clazz,
String attributeName)
getGetter
public static Method getGetter(Object bean,
String attributeName)
setProperty
public static void setProperty(Object bean,
String name,
Object value)
getSetter
public static Method getSetter(Object bean,
String attributeName,
Class<?>... classes)
simpleInvokeMethod
public static Object simpleInvokeMethod(Method m,
Object obj,
Object param)
invokeMethod
public static Object invokeMethod(Object obj,
String methodName,
Object[] args)
Copyright © 2013. All Rights Reserved.