public class BeanReflectionHelper extends Object
| Constructor and Description |
|---|
BeanReflectionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
convertJavaBeanToBeanLikeMap(ClassReflectionHelper helper,
Object bean)
Converts a Java bean to a bean-like Map
|
static String |
getBeanPropertyNameFromGetter(Method method)
Returns the bean version of the property name if the method
is a getter, or returns null if the method is not a getter
|
static PropertyChangeEvent[] |
getChangeEvents(ClassReflectionHelper helper,
Object oldBean,
Object newBean)
Gets the set of change events by comparing two different beans.
|
public static String getBeanPropertyNameFromGetter(Method method)
method - The method to get the property name frompublic static PropertyChangeEvent[] getChangeEvents(ClassReflectionHelper helper, Object oldBean, Object newBean)
helper - A ClassReflectionHelper to use for analyzing classesoldBean - a non-null current beannewBean - a non-null new beanpublic static Map<String,Object> convertJavaBeanToBeanLikeMap(ClassReflectionHelper helper, Object bean)
helper - A ClassReflectionHelper to use for analyzing classesbean - a non-null bean to convertCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.