Package org.jboss.shrinkwrap.api
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
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
Singleton wrapper to obtain a rootArchivePath
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchivePath
Creates a newArchivePath
with the specified contextstatic ArchivePath
Creates a newArchivePath
using the specified base and specified relative context.static ArchivePath
create
(String basePath, ArchivePath context) Creates a newArchivePath
using the specified base and specified relative context.static ArchivePath
create
(ArchivePath basePath, 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
(Class<?>[] argumentTypes, Object[] arguments) static ArchivePath
root()
Creates a newArchivePath
representing the root path (/).
-
Field Details
-
PATH_IMPL
- See Also:
-
archivePathImplClass
-
-
Constructor Details
-
ArchivePaths
private ArchivePaths()No instantiation
-
-
Method Details
-
root
Creates a newArchivePath
representing the root path (/).- Returns:
- a new root path
-
create
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
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
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
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
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
-