Package org.jboss.shrinkwrap.api
Class ArchivePaths
- java.lang.Object
-
- org.jboss.shrinkwrap.api.ArchivePaths
-
public final class ArchivePaths extends java.lang.Object
A Factory forArchivePath
creation. Instances using this shorthand class will be created using theClassLoader
associated with the defaultDomain
'sConfiguration
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ArchivePaths.RootPathWrapper
Singleton wrapper to obtain a rootArchivePath
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Class<?>
archivePathImplClass
private static java.lang.String
PATH_IMPL
-
Constructor Summary
Constructors Modifier Constructor Description private
ArchivePaths()
No instantiation
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArchivePath
create(java.lang.String context)
Creates a newArchivePath
with the specified contextstatic ArchivePath
create(java.lang.String basePath, java.lang.String context)
Creates a newArchivePath
using the specified base and specified relative context.static ArchivePath
create(java.lang.String basePath, ArchivePath context)
Creates a newArchivePath
using the specified base and specified relative context.static ArchivePath
create(ArchivePath basePath, java.lang.String context)
Creates a newArchivePath
using the specified base and specified relative context.static ArchivePath
create(ArchivePath basePath, ArchivePath context)
Creates a newArchivePath
using the specified base and specified relative context.private static ArchivePath
createInstance(java.lang.Class<?>[] argumentTypes, java.lang.Object[] arguments)
static ArchivePath
root()
Creates a newArchivePath
representing the root path (/).
-
-
-
Field Detail
-
PATH_IMPL
private static final java.lang.String PATH_IMPL
- See Also:
- Constant Field Values
-
archivePathImplClass
private static final java.lang.Class<?> archivePathImplClass
-
-
Method Detail
-
root
public static ArchivePath root()
Creates a newArchivePath
representing the root path (/).- Returns:
- a new root path
-
create
public static ArchivePath create(java.lang.String context)
Creates a newArchivePath
with 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(java.lang.String basePath, java.lang.String context)
Creates a newArchivePath
using 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(java.lang.String basePath, ArchivePath context)
Creates a newArchivePath
using 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, java.lang.String context)
Creates a newArchivePath
using 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 newArchivePath
using the specified base and specified relative context.- Parameters:
basePath
- A absolute pathcontext
- A relative path to basePath- Returns:
- a new path
-
createInstance
private static ArchivePath createInstance(java.lang.Class<?>[] argumentTypes, java.lang.Object[] arguments)
-
-