public class

ResourceEditorRegistrar

extends Object
implements PropertyEditorRegistrar
java.lang.Object
   ↳ org.springframework.beans.support.ResourceEditorRegistrar

Class Overview

PropertyEditorRegistrar implementation that populates a given PropertyEditorRegistry (typically a BeanWrapper used for bean creation within an ApplicationContext) with resource editors. Used by AbstractApplicationContext.

Summary

Public Constructors
ResourceEditorRegistrar(ResourceLoader resourceLoader)
This constructor is deprecated. as of Spring 3.1 in favor of ResourceEditorRegistrar#ResourceEditorRegistrar(ResourceLoader, Environment)
ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the given ResourceLoader
Public Methods
void registerCustomEditors(PropertyEditorRegistry registry)
Populate the given bean factory with the following resource editors: ResourceEditor, InputStreamEditor, FileEditor, URLEditor, ClassEditor, URIEditor.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.PropertyEditorRegistrar

Public Constructors

public ResourceEditorRegistrar (ResourceLoader resourceLoader)

This constructor is deprecated.
as of Spring 3.1 in favor of ResourceEditorRegistrar#ResourceEditorRegistrar(ResourceLoader, Environment)

Create a new ResourceEditorRegistrar for the given ResourceLoader using a DefaultEnvironment.

Parameters
resourceLoader the ResourceLoader (or ResourcePatternResolver) to create editors for (usually an ApplicationContext)

public ResourceEditorRegistrar (ResourceLoader resourceLoader, PropertyResolver propertyResolver)

Create a new ResourceEditorRegistrar for the given ResourceLoader

Parameters
resourceLoader the ResourceLoader (or ResourcePatternResolver) to create editors for (usually an ApplicationContext)

Public Methods

public void registerCustomEditors (PropertyEditorRegistry registry)

Also: SpringBeans

Populate the given bean factory with the following resource editors: ResourceEditor, InputStreamEditor, FileEditor, URLEditor, ClassEditor, URIEditor.

In case of a ResourcePatternResolver, a ResourceArrayPropertyEditor will be registered as well.

Parameters
registry the PropertyEditorRegistry to register the custom PropertyEditors with