org.springframework.beans.factory.support
Class ConfigurableBeanFactoryUtils

java.lang.Object
  extended by org.springframework.beans.factory.support.ConfigurableBeanFactoryUtils

public abstract class ConfigurableBeanFactoryUtils
extends Object

Helper methods to populate a ConfigurableBeanFactory with resource editors. Used by AbstractApplicationContext and XmlViewResolver.

Since:
1.2
Author:
Juergen Hoeller
See Also:
AbstractApplicationContext.refresh(), XmlViewResolver.initFactory()

Constructor Summary
ConfigurableBeanFactoryUtils()
           
 
Method Summary
static void registerResourceEditors(ConfigurableBeanFactory beanFactory, ResourceLoader resourceLoader)
          Populate the given bean factory with the following resource editors: ResourceEditor, URLEditor, InputStreamEditor.
static void registerResourceEditors(ConfigurableBeanFactory beanFactory, ResourcePatternResolver resourcePatternResolver)
          Populate the given bean factory with the following resource editors: ResourceEditor, URLEditor, InputStreamEditor, ResourceArrayPropertyEditor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableBeanFactoryUtils

public ConfigurableBeanFactoryUtils()
Method Detail

registerResourceEditors

public static void registerResourceEditors(ConfigurableBeanFactory beanFactory,
                                           ResourceLoader resourceLoader)
Populate the given bean factory with the following resource editors: ResourceEditor, URLEditor, InputStreamEditor.

Parameters:
beanFactory - the bean factory to populate
resourceLoader - the ResourceLoader to create editors for (usually an ApplicationContext)
See Also:
ResourceEditor, URLEditor, InputStreamEditor, ApplicationContext

registerResourceEditors

public static void registerResourceEditors(ConfigurableBeanFactory beanFactory,
                                           ResourcePatternResolver resourcePatternResolver)
Populate the given bean factory with the following resource editors: ResourceEditor, URLEditor, InputStreamEditor, ResourceArrayPropertyEditor.

Parameters:
beanFactory - the bean factory to populate
resourcePatternResolver - the ResourcePatternResolver to create editors for (usually an ApplicationContext)
See Also:
ResourceEditor, URLEditor, InputStreamEditor, ResourceArrayPropertyEditor, ApplicationContext


Copyright (c) 2002-2007 The Spring Framework Project.