|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beanlib.provider.handler.AbstractBeanPopulationExceptionHandler
public abstract class AbstractBeanPopulationExceptionHandler
Can be used as a convenient adaptor class for implementing
the BeanPopulationExceptionHandler interface.
| Field Summary | |
|---|---|
protected Object |
fromBean
|
protected String |
propertyName
|
protected Method |
readerMethod
|
protected Method |
setterMethod
|
protected Object |
toBean
|
| Fields inherited from interface net.sf.beanlib.spi.BeanPopulationExceptionHandler |
|---|
ABORT, CONTINUE |
| Constructor Summary | |
|---|---|
AbstractBeanPopulationExceptionHandler()
|
|
| Method Summary | |
|---|---|
BeanPopulationExceptionHandler |
initFromBean(Object fromBean)
Sets the bean from which the property is populated from, ie the source bean. |
BeanPopulationExceptionHandler |
initPropertyName(String propertyName)
Sets the name of the property being populated. |
BeanPopulationExceptionHandler |
initReaderMethod(Method readerMethod)
Sets the reader method used to retreive the value from the source bean. |
BeanPopulationExceptionHandler |
initSetterMethod(Method setterMethod)
Sets the setter method used to set the value to the target bean. |
BeanPopulationExceptionHandler |
initToBean(Object toBean)
Sets the bean to which the property is populated to, ie the target bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.beanlib.spi.BeanPopulationExceptionHandler |
|---|
handleException |
| Field Detail |
|---|
protected String propertyName
protected Object fromBean
protected Object toBean
protected Method readerMethod
protected Method setterMethod
| Constructor Detail |
|---|
public AbstractBeanPopulationExceptionHandler()
| Method Detail |
|---|
public BeanPopulationExceptionHandler initPropertyName(String propertyName)
BeanPopulationExceptionHandler
initPropertyName in interface BeanPopulationExceptionHandlerpublic BeanPopulationExceptionHandler initFromBean(Object fromBean)
BeanPopulationExceptionHandler
initFromBean in interface BeanPopulationExceptionHandlerpublic BeanPopulationExceptionHandler initReaderMethod(Method readerMethod)
BeanPopulationExceptionHandler
initReaderMethod in interface BeanPopulationExceptionHandlerpublic BeanPopulationExceptionHandler initToBean(Object toBean)
BeanPopulationExceptionHandler
initToBean in interface BeanPopulationExceptionHandlerpublic BeanPopulationExceptionHandler initSetterMethod(Method setterMethod)
BeanPopulationExceptionHandler
initSetterMethod in interface BeanPopulationExceptionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||