org.springframework.richclient.application
Class DefaultConversionServiceFactoryBean

java.lang.Object
  extended by org.springframework.richclient.application.DefaultConversionServiceFactoryBean
All Implemented Interfaces:
FactoryBean

public class DefaultConversionServiceFactoryBean
extends Object
implements FactoryBean

A factory bean that produces a conversion service installed with most converters needed by Spring Rich. Subclasses may extend and customize. The factory approach here is superior to subclassing as it minimizes conversion service constructor logic.

Author:
Oliver Hutchison, Keith Donald

Constructor Summary
DefaultConversionServiceFactoryBean()
           
 
Method Summary
protected  org.springframework.binding.convert.ConversionService createConversionService()
          Creates the conversion service.
 org.springframework.binding.convert.ConversionService getConversionService()
           
protected  org.springframework.binding.format.FormatterFactory getFormatterFactory()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setFormatterFactory(org.springframework.binding.format.FormatterFactory formatterFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConversionServiceFactoryBean

public DefaultConversionServiceFactoryBean()
Method Detail

getFormatterFactory

protected org.springframework.binding.format.FormatterFactory getFormatterFactory()

setFormatterFactory

public void setFormatterFactory(org.springframework.binding.format.FormatterFactory formatterFactory)

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

getConversionService

public final org.springframework.binding.convert.ConversionService getConversionService()

createConversionService

protected org.springframework.binding.convert.ConversionService createConversionService()
Creates the conversion service. Subclasses may override to customize creation.

Returns:
the configured conversion service


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.