Package org.jboss.shrinkwrap.api
Class ArchivePaths
- java.lang.Object
-
- org.jboss.shrinkwrap.api.ArchivePaths
-
public final class ArchivePaths extends Object
A Factory forArchivePathcreation. Instances using this shorthand class will be created using theClassLoaderassociated with the defaultDomain'sConfiguration.- Author:
- Aslak Knutsen, Andrew Lee Rubinger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArchivePathcreate(String context)Creates a newArchivePathwith the specified contextstatic ArchivePathcreate(String basePath, String context)Creates 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 Detail
-
root
public static ArchivePath root()
Creates a newArchivePathrepresenting the root path (/).- Returns:
- a new root path
-
create
public static ArchivePath create(String context)
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
public static ArchivePath create(String basePath, String context)
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- A absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
public static ArchivePath create(String basePath, ArchivePath context)
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- A absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
public static ArchivePath create(ArchivePath basePath, String context)
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- A absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
create
public static ArchivePath create(ArchivePath basePath, ArchivePath context)
Creates a newArchivePathusing the specified base and specified relative context.- Parameters:
basePath- A absolute pathcontext- A relative path to basePath- Returns:
- a new path
-
-