org.springframework.binding.convert.support
Class CustomConverterConfigurer

java.lang.Object
  extended by org.springframework.binding.convert.support.CustomConverterConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.InitializingBean

public class CustomConverterConfigurer
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.InitializingBean

Registers all 'from string' converters known to a conversion service with a Spring bean factory.

Acts as bean factory post processor, registering property editor adapters for each supported conversion with a java.lang.String sourceClass. This makes for very convenient use with the Spring container.

Author:
Keith Donald

Constructor Summary
CustomConverterConfigurer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
           
 void setConversionService(ConversionService conversionService)
          Create a new configurer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomConverterConfigurer

public CustomConverterConfigurer()
Method Detail

setConversionService

public void setConversionService(ConversionService conversionService)
Create a new configurer.

Parameters:
conversionService - the conversion service to take converters from

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright � 2004-2007. All Rights Reserved.