spring-framework / org.springframework.beans.support / ResourceEditorRegistrar

ResourceEditorRegistrar

open class ResourceEditorRegistrar : PropertyEditorRegistrar

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

Author
Juergen Hoeller

Author
Chris Beams

Since
2.0

Constructors

<init>

ResourceEditorRegistrar(resourceLoader: ResourceLoader, propertyResolver: PropertyResolver)

Create a new ResourceEditorRegistrar for the given ResourceLoader and PropertyResolver.

Functions

registerCustomEditors

open fun registerCustomEditors(registry: PropertyEditorRegistry): Unit

Populate the given 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.