Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » io » [javadoc | source]
org.springframework.core.io
public class: ResourceEditor [javadoc | source]
java.lang.Object
   java.beans.PropertyEditorSupport
      org.springframework.core.io.ResourceEditor

All Implemented Interfaces:
    PropertyEditor

Editor for Resource descriptors, to automatically convert String locations e.g. "file:C:/myfile.txt" or "classpath:myfile.txt") to Resource properties instead of using a String location property.

The path may contain ${...} placeholders, to be resolved as system properties: e.g. ${user.dir}.

Delegates to a ResourceLoader to do the heavy lifting, by default using a DefaultResourceLoader .

Constructor:
 public ResourceEditor() 
 public ResourceEditor(ResourceLoader resourceLoader) 
    Parameters:
    resourceLoader - the ResourceLoader to use
Method from org.springframework.core.io.ResourceEditor Summary:
getAsText,   resolvePath,   setAsText
Methods from java.beans.PropertyEditorSupport:
addPropertyChangeListener,   firePropertyChange,   getAsText,   getCustomEditor,   getJavaInitializationString,   getSource,   getTags,   getValue,   isPaintable,   paintValue,   removePropertyChangeListener,   setAsText,   setSource,   setValue,   supportsCustomEditor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.core.io.ResourceEditor Detail:
 public String getAsText() 
 protected String resolvePath(String path) 
    Resolve the given path, replacing placeholders with corresponding system property values if necessary.
 public  void setAsText(String text)