org.springframework.core.io.support
Class ResourceArrayPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.core.io.AbstractPathResolvingPropertyEditor
org.springframework.core.io.support.ResourceArrayPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
- public class ResourceArrayPropertyEditor
- extends AbstractPathResolvingPropertyEditor
Editor for Resource descriptor arrays, to automatically convert String
location patterns (e.g. "file:C:/my*.txt" or "classpath*:myfile.txt")
to Resource array properties.
The path may contain ${...} placeholders, to be resolved as
system properties: e.g. ${user.dir}.
Delegates to a ResourcePatternResolver, by default a
PathMatchingResourcePatternResolver.
- Since:
- 1.1.2
- Author:
- Juergen Hoeller
- See Also:
AbstractPathResolvingPropertyEditor.PLACEHOLDER_PREFIX
,
AbstractPathResolvingPropertyEditor.PLACEHOLDER_SUFFIX
,
Resource
,
ResourcePatternResolver
,
PathMatchingResourcePatternResolver
,
System.getProperty(String)
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceArrayPropertyEditor
public ResourceArrayPropertyEditor()
- Create a new ResourceArrayPropertyEditor with a default
PathMatchingResourcePatternResolver.
- See Also:
PathMatchingResourcePatternResolver
ResourceArrayPropertyEditor
public ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver)
- Create a new ResourceArrayPropertyEditor with the given ResourcePatternResolver.
- Parameters:
resourcePatternResolver
- the ResourcePatternResolver to use
setAsText
public void setAsText(String text)
Copyright (C) 2003-2004 The Spring Framework Project.