@Role public interface BeanManager
populate(Object, Map) ignore properties names casepopulate(Object, Map) validate the bean based JSR 303RawProperties, the remaining property (the one non populated using setters of
public fields) are given to it as custom non converted properties| Modifier and Type | Method and Description |
|---|---|
BeanDescriptor |
getBeanDescriptor(Class<?> beanClass)
Parse provided java bean and return a descriptor with all its public properties.
|
void |
populate(Object bean,
Map<String,?> values)
Convert provided values and inject them in the provided java bean.
|
void populate(Object bean, Map<String,?> values) throws PropertyException
bean - the java bean to populatevalues - the values to convert and inject in the java beanPropertyException - error append during the populateBeanDescriptor getBeanDescriptor(Class<?> beanClass)
beanClass - the java bean class to parse.Copyright © 2004–2016 XWiki. All rights reserved.