org.gageot.excel.beans
Class BeanSetterImpl

java.lang.Object
  extended by org.gageot.excel.beans.BeanSetterImpl
All Implemented Interfaces:
BeanSetter

public class BeanSetterImpl
extends java.lang.Object
implements BeanSetter

Simple BeanSetter implementation based on BeanWrapperImpl Spring class.

Author:
David Gageot
See Also:
BeanCellCallbackHandler, ExcelTemplate#read(String,CellCallbackHandler)

Constructor Summary
BeanSetterImpl()
           
 
Method Summary
protected  org.springframework.beans.BeanWrapper getWrapper(java.lang.Object bean)
           
 void setProperty(java.lang.Object bean, java.lang.String propertyName, java.lang.Object propertyValue)
          Set the value of a property on the current bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanSetterImpl

public BeanSetterImpl()
Method Detail

getWrapper

protected org.springframework.beans.BeanWrapper getWrapper(java.lang.Object bean)

setProperty

public void setProperty(java.lang.Object bean,
                        java.lang.String propertyName,
                        java.lang.Object propertyValue)
                 throws org.springframework.beans.BeansException
Set the value of a property on the current bean.

Specified by:
setProperty in interface BeanSetter
Parameters:
bean - bean instance to populate
propertyName - the name of the property (case insensitive)
propertyValue - the value of the property
Throws:
org.springframework.beans.BeansException


Copyright © 2007 gageot.net. All Rights Reserved.