Package | Description |
---|---|
org.jboss.shrinkwrap.api | |
org.jboss.shrinkwrap.api.container | |
org.jboss.shrinkwrap.api.importer |
Modifier and Type | Method and Description |
---|---|
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(String context)
Creates a new
ArchivePath with the specified context |
static ArchivePath |
ArchivePaths.create(String basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(String basePath,
String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
ArchivePath |
ArchivePath.getParent()
Obtains the parent of this Path, if exists, else null.
|
ArchivePath |
Node.getPath() |
ArchivePath |
ArchiveEvent.getPath() |
static ArchivePath |
ArchivePaths.root()
Creates a new
ArchivePath representing the root path (/). |
Modifier and Type | Method and Description |
---|---|
static Filter<ArchivePath> |
Filters.exclude(Class<?>... classes)
|
static Filter<ArchivePath> |
Filters.exclude(Package... packages)
|
static Filter<ArchivePath> |
Filters.exclude(String regexp)
|
Map<ArchivePath,Node> |
Archive.getContent()
Obtains all assets in this archive, along with their respective paths.
|
Map<ArchivePath,Node> |
Archive.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path.
|
static Filter<ArchivePath> |
Filters.include(Class<?>... classes)
|
static Filter<ArchivePath> |
Filters.include(Package... packages)
|
static Filter<ArchivePath> |
Filters.include(String regexp)
|
static Filter<ArchivePath> |
Filters.includeAll()
Filter that includes all ArchivePath s. |
Modifier and Type | Method and Description |
---|---|
T |
Archive.add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path.
|
T |
Archive.add(Asset asset,
ArchivePath target)
Adds the specified asset under the specified path into the target context
|
T |
Archive.add(Asset asset,
ArchivePath target,
String name)
Adds the specified asset under the specified target (directory) using the specified name.
|
T |
Archive.addAsDirectories(ArchivePath... paths)
Adds the specified directories.
|
T |
Archive.addAsDirectory(ArchivePath path)
Adds the specified directory.
|
boolean |
Archive.contains(ArchivePath path)
Denotes whether this archive contains a resource at the specified path
|
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(ArchivePath basePath,
String context)
Creates a new
ArchivePath using the specified base and specified relative context. |
static ArchivePath |
ArchivePaths.create(String basePath,
ArchivePath context)
Creates a new
ArchivePath using the specified base and specified relative context. |
Node |
Archive.delete(ArchivePath path)
|
Node |
Archive.get(ArchivePath path)
Obtains the
Node located at the specified path |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
ArchivePath path)
Get a nested
Archive as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
ArchivePath path,
ArchiveFormat archiveFormat)
|
T |
Archive.merge(Archive<?> source,
ArchivePath path)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.merge(Archive<?> source,
ArchivePath path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.move(ArchivePath source,
ArchivePath target)
Moves the asset under the source path to the target path.
|
Modifier and Type | Method and Description |
---|---|
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
Filter<ArchivePath> filter)
Get all nested
Archive matching the filter as a specific type.The found Archives must have been added as a Archive, no import is performed. |
<X extends Archive<X>> |
Archive.getAsType(Class<X> type,
Filter<ArchivePath> filter,
ArchiveFormat archiveFormat)
Get all nested
Archive matching the filter as a specific type using the specify ArchiveFormat . |
Map<ArchivePath,Node> |
Archive.getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path.
|
T |
Archive.merge(Archive<?> source,
ArchivePath path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
T |
Archive.merge(Archive<?> source,
Filter<ArchivePath> filter)
Merge the contents from an existing archive without maintaining the archive name in the context path.
|
T |
Archive.merge(Archive<?> source,
String path,
Filter<ArchivePath> filter)
Merge the contents from an existing archive in a specific path without maintaining the archive name in the
context path.
|
Constructor and Description |
---|
ArchiveEvent(ArchivePath path,
Asset asset) |
Modifier and Type | Method and Description |
---|---|
T |
EnterpriseContainer.addAsApplicationResource(Asset resource,
ArchivePath target)
|
T |
EnterpriseContainer.addAsApplicationResource(File resource,
ArchivePath target)
|
T |
EnterpriseContainer.addAsApplicationResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
EnterpriseContainer.addAsApplicationResource(String resourceName,
ArchivePath target)
Adds a resource to this
Archive s application context. |
T |
EnterpriseContainer.addAsApplicationResource(URL resource,
ArchivePath target)
|
T |
LibraryContainer.addAsLibrary(Asset resource,
ArchivePath target)
Adds the
Asset as a library to the container, returning the container itself. |
T |
LibraryContainer.addAsLibrary(File resource,
ArchivePath target)
Adds the
File as a library to the container, returning the container itself. |
T |
LibraryContainer.addAsLibrary(String resourceName,
ArchivePath target)
Adds the resource as a library to the container, returning the container itself.
|
T |
LibraryContainer.addAsLibrary(URL resource,
ArchivePath target)
Adds the
URL as a library to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Manifest resource to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(File resource,
ArchivePath target)
Adds the
File as a Manifest resource to the container, returning the container itself. |
T |
ManifestContainer.addAsManifestResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
ManifestContainer.addAsManifestResource(String resourceName,
ArchivePath target)
Adds the resource as a Manifest resource to the container, returning the container itself.
|
T |
ManifestContainer.addAsManifestResource(URL resource,
ArchivePath target)
Adds the
URL as a Manifest resource to the container, returning the container itself. |
T |
EnterpriseContainer.addAsModule(Asset resource,
ArchivePath targetPath)
|
T |
EnterpriseContainer.addAsModule(File resource,
ArchivePath targetPath)
|
T |
EnterpriseContainer.addAsModule(String resourceName,
ArchivePath targetPath)
Adds a resource to this
Archive s module context. |
T |
EnterpriseContainer.addAsModule(URL resource,
ArchivePath targetPath)
|
T |
ResourceContainer.addAsResource(Asset resource,
ArchivePath target)
Adds the
Asset as a resource to the container, returning the container itself. |
T |
ResourceContainer.addAsResource(File resource,
ArchivePath target)
Adds the
File as a resource to the container, returning the container itself. |
T |
ResourceContainer.addAsResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(String resourceName,
ArchivePath target)
Adds the resource with the specified name to the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(String resourceName,
ArchivePath target,
ClassLoader classLoader)
Adds the resource as a resource to the container, returning the container itself.
|
T |
ResourceContainer.addAsResource(URL resource,
ArchivePath target)
Adds the
URL as a resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(Asset resource,
ArchivePath target)
Adds the
Asset as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(File resource,
ArchivePath target)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebInfResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to a specific path inside the container, returning the container itself.
|
T |
WebContainer.addAsWebInfResource(String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
WebContainer.addAsWebInfResource(URL resource,
ArchivePath target)
Adds the
URL as a WEB-INF resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Web resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(File resource,
ArchivePath target)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
WebContainer.addAsWebResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
WebContainer.addAsWebResource(String resourceName,
ArchivePath target)
Adds the resource as a Web resource to the container, returning the container itself.
|
T |
WebContainer.addAsWebResource(URL resource,
ArchivePath target)
Adds the
URL as a Web resource to the container, returning the container itself. |
Modifier and Type | Method and Description |
---|---|
T |
ClassContainer.addPackages(boolean recursive,
Filter<ArchivePath> filter,
Package... packages)
|
T |
ClassContainer.addPackages(boolean recursive,
Filter<ArchivePath> filter,
String... packages)
|
T |
ClassContainer.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
Package... packages)
|
T |
ClassContainer.deletePackages(boolean recursive,
Filter<ArchivePath> filter,
String... packages)
|
Modifier and Type | Method and Description |
---|---|
ExplodedImporter |
ExplodedImporter.importDirectory(File file,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
ExplodedImporter |
ExplodedImporter.importDirectory(String fileName,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.