org.databene.commons.converter
Class SynchronizedConverterProxy<S,T>

java.lang.Object
  extended by org.databene.commons.converter.ConverterWrapper<S,T>
      extended by org.databene.commons.converter.ConverterProxy<S,T>
          extended by org.databene.commons.converter.SynchronizedConverterProxy<S,T>
All Implemented Interfaces:
java.lang.Cloneable, Converter<S,T>, ThreadAware

public class SynchronizedConverterProxy<S,T>
extends ConverterProxy<S,T>

Proxy class for (unsafe) Converters that synchronizes calls to the wrapped converter instance.

Created: 26.02.2010 18:22:36

Since:
0.5.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.commons.converter.ConverterWrapper
realConverter
 
Constructor Summary
protected SynchronizedConverterProxy(Converter<S,T> realConverter)
           
 
Method Summary
 T convert(S sourceValue)
          Concerts an object of type S to an object of type T
 
Methods inherited from class org.databene.commons.converter.ConverterProxy
getSourceType, getTargetType
 
Methods inherited from class org.databene.commons.converter.ConverterWrapper
clone, isParallelizable, isThreadSafe
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 

Constructor Detail

SynchronizedConverterProxy

protected SynchronizedConverterProxy(Converter<S,T> realConverter)
Method Detail

convert

public T convert(S 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.