org.xwiki.properties
Interface BeanManager


@ComponentRole
public interface BeanManager

Component used to populate or parse a java bean.

Since:
2.0M2
Version:
$Id: BeanManager.java 32446 2010-11-04 08:55:46Z vmassol $

Method Summary
 BeanDescriptor getBeanDescriptor(java.lang.Class<?> beanClass)
          Parse provided java bean and return a descriptor with all its public properties.
 void populate(java.lang.Object bean, java.util.Map<java.lang.String,?> values)
          Convert provided values and inject them in the provided java bean.
 

Method Detail

populate

void populate(java.lang.Object bean,
              java.util.Map<java.lang.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(java.lang.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-2011 XWiki. All Rights Reserved.