org.springframework.binding.convert.support
Class AbstractFormattingConverter

java.lang.Object
  extended by org.springframework.binding.convert.support.AbstractConverter
      extended by org.springframework.binding.convert.support.AbstractFormattingConverter
All Implemented Interfaces:
Converter
Direct Known Subclasses:
TextToNumber

public abstract class AbstractFormattingConverter
extends AbstractConverter

A converter that delegates to a formatter to perform the conversion. Formatters are typically not thread safe, so we use a FormatterFactory that is expected to provide us with thread-safe instances as necessary.

Author:
Keith Donald

Constructor Summary
protected AbstractFormattingConverter(FormatterFactory formatterFactory)
          Creates a new converter that delegates to a formatter.
 
Method Summary
protected  FormatterFactory getFormatterFactory()
           
 void setFormatterFactory(FormatterFactory formatterSource)
           
 
Methods inherited from class org.springframework.binding.convert.support.AbstractConverter
convert, convert, convert, convert, doConvert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.binding.convert.Converter
getSourceClasses, getTargetClasses
 

Constructor Detail

AbstractFormattingConverter

protected AbstractFormattingConverter(FormatterFactory formatterFactory)
Creates a new converter that delegates to a formatter.

Parameters:
formatterFactory - the factory to use
Method Detail

getFormatterFactory

protected FormatterFactory getFormatterFactory()

setFormatterFactory

public void setFormatterFactory(FormatterFactory formatterSource)


Copyright © 2009 Spring Framework. All Rights Reserved.