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 .
| Modifier and Type | Field and Description |
|---|---|
| private final PropertyResolver | |
| private final ResourceLoader |
| Access | Constructor and Description |
|---|---|
| public | ResourceEditorRegistrar(ResourceLoader
the ResourceLoader (or ResourcePatternResolver)
to create editors for (usually an ApplicationContext) resourceLoader, PropertyResolver the PropertyResolver (usually an Environment) propertyResolver)Create a new ResourceEditorRegistrar for the given |
| Modifier and Type | Method and Description |
|---|---|
| private void | doRegisterEditor(PropertyEditorRegistry registry, Class<?> requiredType, PropertyEditor editor)
Override default editor, if possible (since that's what we really mean to do here); otherwise register as a custom editor. |
| public void | registerCustomEditors(PropertyEditorRegistry
the registry)PropertyEditorRegistry to register the
custom PropertyEditors withImplements org. Populate the given |
| propertyResolver | back to summary |
|---|---|
| private final PropertyResolver propertyResolver | |
| resourceLoader | back to summary |
|---|---|
| private final ResourceLoader resourceLoader | |
| ResourceEditorRegistrar | back to summary |
|---|---|
| public ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new ResourceEditorRegistrar for the given
| |
| doRegisterEditor | back to summary |
|---|---|
| private void doRegisterEditor(PropertyEditorRegistry registry, Class<?> requiredType, PropertyEditor editor) Override default editor, if possible (since that's what we really mean to do here); otherwise register as a custom editor. | |