Class ResourceEditorRegistrar
java.lang.Object
org.springframework.beans.support.ResourceEditorRegistrar
- All Implemented Interfaces:
- 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, Chris Beams
- 
Constructor SummaryConstructorsConstructorDescriptionResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new ResourceEditorRegistrar for the givenResourceLoaderandPropertyResolver.
- 
Method SummaryModifier and TypeMethodDescriptionvoidregisterCustomEditors(PropertyEditorRegistry registry) Populate the givenregistrywith the following resource editors: ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor, URIEditor, ClassEditor, ClassArrayEditor.
- 
Constructor Details- 
ResourceEditorRegistrarCreate a new ResourceEditorRegistrar for the givenResourceLoaderandPropertyResolver.- Parameters:
- resourceLoader- the ResourceLoader (or ResourcePatternResolver) to create editors for (usually an ApplicationContext)
- propertyResolver- the PropertyResolver (usually an Environment)
- See Also:
 
 
- 
- 
Method Details- 
registerCustomEditorsPopulate the givenregistrywith the following resource editors: ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor, URIEditor, ClassEditor, ClassArrayEditor.If this registrar has been configured with a ResourcePatternResolver, a ResourceArrayPropertyEditor will be registered as well.- Specified by:
- registerCustomEditorsin interface- PropertyEditorRegistrar
- Parameters:
- registry- the- PropertyEditorRegistryto register the custom- PropertyEditorswith
- See Also:
 
 
-