public class ResourceEditorRegistrar extends Object implements PropertyEditorRegistrar
PropertyEditorRegistry
(typically a BeanWrapper used for bean
creation within an org.springframework.context.ApplicationContext)
with resource editors. Used by
org.springframework.context.support.AbstractApplicationContext.| Constructor and Description |
|---|
ResourceEditorRegistrar(org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.core.env.PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the given
ResourceLoader
and PropertyResolver. |
| Modifier and Type | Method and Description |
|---|---|
void |
registerCustomEditors(PropertyEditorRegistry registry)
Populate the given
registry with the following resource editors:
ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor,
URIEditor, ClassEditor, ClassArrayEditor. |
public ResourceEditorRegistrar(org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.core.env.PropertyResolver propertyResolver)
ResourceLoader
and PropertyResolver.resourceLoader - the ResourceLoader (or ResourcePatternResolver)
to create editors for (usually an ApplicationContext)propertyResolver - the PropertyResolver (usually an Environment)Environment,
ResourcePatternResolver,
org.springframework.context.ApplicationContextpublic void registerCustomEditors(PropertyEditorRegistry registry)
registry with 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.
registerCustomEditors in interface PropertyEditorRegistrarregistry - the PropertyEditorRegistry to register the
custom PropertyEditors withResourceEditor,
InputStreamEditor,
InputSourceEditor,
FileEditor,
URLEditor,
URIEditor,
ClassEditor,
ClassArrayEditor,
ResourceArrayPropertyEditor