org.databene.commons.bean
Class PropertyAccessConverter

java.lang.Object
  extended by org.databene.commons.converter.AbstractConverter<S,T>
      extended by org.databene.commons.converter.ThreadSafeConverter
          extended by org.databene.commons.bean.PropertyAccessConverter
All Implemented Interfaces:
java.lang.Cloneable, Converter, ThreadAware

public class PropertyAccessConverter
extends ThreadSafeConverter

Wraps an Accessor with a Converter interface implementation.

Created: 25.06.2007 08:04:22

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.commons.converter.AbstractConverter
sourceType, targetType
 
Constructor Summary
PropertyAccessConverter(java.lang.String propertyName)
           
PropertyAccessConverter(java.lang.String propertyName, java.lang.Class<?> propertyType)
           
PropertyAccessConverter(java.lang.String propertyName, java.lang.Class<?> propertyType, boolean strict)
           
 
Method Summary
 java.lang.Object convert(java.lang.Object sourceValue)
          Concerts an object of type S to an object of type T
 
Methods inherited from class org.databene.commons.converter.ThreadSafeConverter
clone, isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.commons.converter.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyAccessConverter

public PropertyAccessConverter(java.lang.String propertyName)

PropertyAccessConverter

public PropertyAccessConverter(java.lang.String propertyName,
                               java.lang.Class<?> propertyType)

PropertyAccessConverter

public PropertyAccessConverter(java.lang.String propertyName,
                               java.lang.Class<?> propertyType,
                               boolean strict)
Method Detail

convert

public java.lang.Object convert(java.lang.Object sourceValue)
                         throws ConversionException
Description copied from interface: Converter
Concerts an object of type S to an object of type T

Parameters:
sourceValue - the object to convert
Returns:
the converted object
Throws:
ConversionException - if the conversion fails


Copyright © 2010. All Rights Reserved.