org.xwiki.properties
Interface BeanManager


@Role
public interface BeanManager

Component used to populate or parse a java bean.

Since:
2.0M2
Version:
$Id: 55d2c685ba8025d0183e29541d595cac9393da2f $

Method Summary
 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.
 

Method Detail

populate

void populate(Object bean,
              Map<String,?> values)
              throws PropertyException
Convert provided values and inject them in the provided java bean.

Parameters:
bean - the java bean to populate
values - the values to convert and inject in the java bean
Throws:
PropertyException - error append during the populate

getBeanDescriptor

BeanDescriptor getBeanDescriptor(Class<?> beanClass)
Parse provided java bean and return a descriptor with all its public properties.

Parameters:
beanClass - the java bean class to parse.
Returns:
the descriptor of the bean class.


Copyright © 2004-2014 XWiki. All Rights Reserved.