|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.beanutils.BeanUtils org.mule.util.BeanUtils
public class BeanUtils
BeanUtils
provides functions for altering the way commons BeanUtils
works
Field Summary | |
---|---|
static String |
SET_PROPERTIES_METHOD
|
Constructor Summary | |
---|---|
BeanUtils()
|
Method Summary | |
---|---|
static Map |
describe(Object object)
The Apache BeanUtils version of this converts all values to String, which is pretty useless, it also includes stuff not defined by the user |
static Map<String,Object> |
describeBean(Object object)
Similar to describe(Object) except that it will only populate bean properties where there is a valid
getter and setter method. |
static void |
populate(Object bean,
Map props)
This will overlay a map of properties on a bean. |
static void |
populateWithoutFail(Object object,
Map props,
boolean logWarnings)
Exception safe version of BeanUtils.populate() |
Methods inherited from class org.apache.commons.beanutils.BeanUtils |
---|
cloneBean, copyProperties, copyProperty, createCache, getArrayProperty, getCacheFast, getDebug, getIndexedProperty, getIndexedProperty, getMappedProperty, getMappedProperty, getNestedProperty, getProperty, getSimpleProperty, initCause, setCacheFast, setDebug, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SET_PROPERTIES_METHOD
Constructor Detail |
---|
public BeanUtils()
Method Detail |
---|
public static void populateWithoutFail(Object object, Map props, boolean logWarnings)
object
- the object to set the properties onprops
- the map of properties to setlogWarnings
- whether exception warnings should be loggedpublic static void populate(Object bean, Map props) throws IllegalAccessException, InvocationTargetException
bean
- the bean on which to set the propertiesprops
- a Map of properties to set on the bean
IllegalAccessException
InvocationTargetException
public static Map describe(Object object)
object
- the object to Describe
public static Map<String,Object> describeBean(Object object)
describe(Object)
except that it will only populate bean properties where there is a valid
getter and setter method. Basically this method will describe a bean and honour its encapsulation.
object
- the object to describe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |