public interface DataResourceFactory
DataResources. DataResource -implementation (e.g.
ClasspathResource ).| Modifier and Type | Method and Description |
|---|---|
DataResource |
createDataResource(String resourceUri)
This method creates a new
DataResource from the given resourceUri. |
DataResource createDataResource(String resourceUri) throws ResourceUriUndefinedException
DataResource from the given resourceUri. The following
URI-schemes are guaranteed to be supported:
| scheme | example URI | default implementation |
|---|---|---|
| file | file:///tmp/foo.xml | FileResource |
| classpath | classpath:net/sf/mmm/util/beans-core.xml | ClasspathResource |
ftp|http|https|... (whatever supported by URL) |
http://m-m-m.sourceforge.net/maven/ | UrlResource |
resourceUri - is the absolute URI pointing to the location of the
requested DataResource.DataResource.ResourceUriUndefinedException - if the given resourceUri is undefined (e.g. the scheme is
NOT supported).Copyright © 2001–2016 mmm-Team. All rights reserved.