@ComponentSpecification public interface PathFactory
Path
across multiple
FileSystem
s. Path
directly (e.g. Paths.get(java.net.URI)
).Paths.get(java.net.URI)
Modifier and Type | Method and Description |
---|---|
Path |
createPath(Path basePath,
String resourcePath)
This method creates a new
Path for the given parameters. |
Path |
createPath(String resourceUri)
This method creates a new
Path for the given resourceUri . |
static final String CDI_NAME
CDI name
.Path createPath(String resourceUri)
Path
for the given resourceUri
. The following URI-schemes are guaranteed
to be supported:
scheme | example URI |
---|---|
file |
file:///tmp/foo.xml |
classpath |
classpath:net/sf/mmm/util/beans-core.xml |
http |
http://m-m-m.sourceforge.net/maven/ |
https |
https://github.com/m-m-m/mmm/ |
resourceUri
- is the absolute URI
pointing to the location of the requested Path
.Path
.Path createPath(Path basePath, String resourcePath)
Path
for the given parameters. If the given resourcePath
is absolute
(including scheme
), then this method returns the same result as
createPath
(resourcePath)
. Otherwise the resource path will be treated relative
to the given basePath
.basePath
- is the Path
to use if resourcePath
is relative. You typically want to provide the
parent directory
of a resource to navigate from.resourcePath
- is the absolute or relative path to the requested resource.Copyright © 2001–2016 mmm-Team. All rights reserved.