org.springframework.beans.support
Class ResourceEditorRegistrar
java.lang.Object
org.springframework.beans.support.ResourceEditorRegistrar
- All Implemented Interfaces:
- PropertyEditorRegistrar
public class ResourceEditorRegistrar
- extends Object
- implements PropertyEditorRegistrar
PropertyEditorRegistrar implementation that populates a given PropertyEditorRegistry
(typically a BeanWrapper used for bean creation within an ApplicationContext)
with resource editors. Used by AbstractApplicationContext.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
AbstractApplicationContext.refresh()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceEditorRegistrar
public ResourceEditorRegistrar(ResourceLoader resourceLoader)
- Create a new ResourceEditorRegistrar for the given ResourceLoader
- Parameters:
resourceLoader
- the ResourceLoader (or ResourcePatternResolver)
to create editors for (usually an ApplicationContext)- See Also:
ResourcePatternResolver
,
ApplicationContext
registerCustomEditors
public void registerCustomEditors(PropertyEditorRegistry registry)
- Populate the given bean factory with the following resource editors:
ResourceEditor, URLEditor, FileEditor, InputStreamEditor.
In case of a DefaultResourceLoader, a ClassEditor will be registered as well;
in case of a ResourcePatternResolver, a ResourceArrayPropertyEditor will be registered.
- Specified by:
registerCustomEditors
in interface PropertyEditorRegistrar
- Parameters:
registry
- the PropertyEditorRegistry to register the custom
PropertyEditors with- See Also:
ResourceEditor
,
URLEditor
,
InputStreamEditor
,
ApplicationContext
Copyright © 2002-2007 The Spring Framework.