public class ResourceEditorRegistrar extends Object implements PropertyEditorRegistrar
PropertyEditorRegistry
(typically a BeanWrapper
used for bean
creation within an ApplicationContext
)
with resource editors. Used by
AbstractApplicationContext
.Constructor and Description |
---|
ResourceEditorRegistrar(ResourceLoader resourceLoader)
Deprecated.
as of Spring 3.1 in favor of
ResourceEditorRegistrar(ResourceLoader, PropertyResolver) |
ResourceEditorRegistrar(ResourceLoader resourceLoader,
PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the given ResourceLoader
|
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. |
@Deprecated public ResourceEditorRegistrar(ResourceLoader resourceLoader)
ResourceEditorRegistrar(ResourceLoader, PropertyResolver)
ResourceLoader
using a StandardEnvironment
.resourceLoader
- the ResourceLoader (or ResourcePatternResolver)
to create editors for (usually an ApplicationContext)ResourcePatternResolver
,
ApplicationContext
public ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver)
resourceLoader
- the ResourceLoader (or ResourcePatternResolver)
to create editors for (usually an ApplicationContext)ResourcePatternResolver
,
ApplicationContext
public 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 PropertyEditorRegistrar
registry
- the PropertyEditorRegistry
to register the
custom PropertyEditors
withResourceEditor
,
InputStreamEditor
,
InputSourceEditor
,
FileEditor
,
URLEditor
,
URIEditor
,
ClassEditor
,
ClassArrayEditor
,
ResourceArrayPropertyEditor