Class ArchivePaths
java.lang.Object
org.jboss.shrinkwrap.api.ArchivePaths
A Factory for
ArchivePath creation. Instances using this shorthand class will be created using the
ClassLoader associated with the default Domain's Configuration.- Author:
- Aslak Knutsen, Andrew Lee Rubinger
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArchivePathCreates a newArchivePathwith the specified contextstatic ArchivePathCreates a newArchivePathusing the specified base and specified relative context.static ArchivePathcreate(String basePath, ArchivePath context) Creates a newArchivePathusing the specified base and specified relative context.static ArchivePathcreate(ArchivePath basePath, String context) Creates a newArchivePathusing the specified base and specified relative context.static ArchivePathcreate(ArchivePath basePath, ArchivePath context) Creates a newArchivePathusing the specified base and specified relative context.static ArchivePathroot()Creates a newArchivePathrepresenting the root path (/).
-
Method Details
-
root
Creates a newArchivePathrepresenting the root path (/).- Returns:
- a new root path
-
create
Creates a newArchivePathwith the specified context- Parameters:
context- The context which this path represents. Null or blank represents the root. Relative paths will be adjusted to absolute form.- Returns:
- a new path
-
create
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- An absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- An absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- An absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- An absolute pathcontext- A relative path to basePath- Returns:
- a new path
-