public class FileServiceResourceConverter extends PropertyEditorSupport implements Converter<String,Resource>, ResourceLoaderAware
FileService.| Constructor and Description |
|---|
FileServiceResourceConverter()
Convenient constructor for declarative configuration purposes.
|
FileServiceResourceConverter(FileService fileService) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
convert(String source)
Convert the source path to a Resource.
|
void |
setAsText(String text) |
void |
setFileService(FileService fileService) |
void |
setResourceLoader(ResourceLoader resourceLoader)
Set the resource loader as a fallback for resources that are not managed
by the
FileService. |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic FileServiceResourceConverter()
public FileServiceResourceConverter(FileService fileService)
fileService - FileService to be usedpublic void setFileService(FileService fileService)
fileService - the fileService to setpublic void setResourceLoader(ResourceLoader resourceLoader)
FileService.setResourceLoader in interface ResourceLoaderAwareResourceLoaderAware.setResourceLoader(ResourceLoader)public Resource convert(String source)
FileService then it will be returned as a wrapper.convert in interface Converter<String,Resource>Converter.convert(Object)public void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionCopyright © 2015. All rights reserved.