|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.impl.base.ArchiveBase<T>
org.jboss.shrinkwrap.impl.base.MemoryMapArchiveBase<T>
T - public abstract class MemoryMapArchiveBase<T extends Archive<T>>
MemoryMapArchiveBase A base implementation for all MemoryMap archives. Thread-safe.
| Constructor Summary | |
|---|---|
MemoryMapArchiveBase(Configuration configuration)
Constructor This constructor will generate a unique Archive.getName() per instance. |
|
MemoryMapArchiveBase(String archiveName,
Configuration configuration)
Constructor This constructor will generate an Archive with the provided name. |
|
| Method Summary | |
|---|---|
T |
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 |
add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
Add an archive under a specific context and maintain the archive name as context path. |
T |
add(Asset asset,
ArchivePath path)
Adds the specified asset under the specified path into the target context |
T |
addAsDirectory(ArchivePath path)
Adds the specified directory. |
boolean |
contains(ArchivePath path)
Denotes whether this archive contains a resource at the specified path |
boolean |
contains(String path)
Denotes whether this archive contains a resource at the specified path |
Node |
delete(ArchivePath path)
Removes the Node in the Archive at the specified ArchivePath. |
Node |
delete(String archivePath)
Removes the Node in the Archive at the ArchivePath indicated
by the specified String archivePath. |
Node |
get(ArchivePath path)
Obtains the Node located at the specified path |
Map<ArchivePath,Node> |
getContent()
Obtains all assets in this archive, along with its respective Path. |
Map<ArchivePath,Node> |
getContent(Filter<ArchivePath> filter)
Obtains all assets matching given filter in this archive, along with its respective Path. |
| Methods inherited from class org.jboss.shrinkwrap.impl.base.ArchiveBase |
|---|
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, as, covariantReturn, equals, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getConfiguration, getName, hashCode, merge, merge, merge, merge, merge, merge, toString, toString, toString, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.shrinkwrap.api.Archive |
|---|
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getName, merge, merge, merge, merge, merge, merge, toString, toString, toString, writeTo |
| Methods inherited from interface org.jboss.shrinkwrap.api.Assignable |
|---|
as |
| Constructor Detail |
|---|
public MemoryMapArchiveBase(Configuration configuration)
throws IllegalArgumentException
Archive.getName() per instance.
configuration - The configuration for this archive
IllegalArgumentException - If the configuration is not specified
public MemoryMapArchiveBase(String archiveName,
Configuration configuration)
throws IllegalArgumentException
Archive with the provided name.
archiveName - configuration - The configuration for this archive
IllegalArgumentException - If the name or configuration is not specified| Method Detail |
|---|
public T add(Asset asset,
ArchivePath path)
add in interface Archive<T extends Archive<T>>path - The context under which to add the assets
Archive.add(org.jboss.shrinkwrap.api.asset.Asset, org.jboss.shrinkwrap.api.ArchivePath)
public T add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter)
add in interface Archive<T extends Archive<T>>archive - to addpath - to useexporter - Exporter type to use in fulfilling the Asset.openStream() contract for
the added (nested) archive.
Archive.add(org.jboss.shrinkwrap.api.Archive, java.lang.String, java.lang.Class)
public T add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter)
add in interface Archive<T extends Archive<T>>add in class ArchiveBase<T extends Archive<T>>archive - to addpath - to useexporter - Exporter type to use in fulfilling the Asset.openStream() contract for
the added (nested) archive.
ArchiveBase.add(org.jboss.shrinkwrap.api.Archive, org.jboss.shrinkwrap.api.ArchivePath, java.lang.Class)
public T addAsDirectory(ArchivePath path)
throws IllegalArgumentException
addAsDirectory in interface Archive<T extends Archive<T>>path - The path to add
IllegalArgumentException - If no path was specifiedArchive.addAsDirectory(org.jboss.shrinkwrap.api.ArchivePath)public boolean contains(ArchivePath path)
contains in interface Archive<T extends Archive<T>>Archive.contains(org.jboss.shrinkwrap.api.ArchivePath)
public boolean contains(String path)
throws IllegalArgumentException
contains in interface Archive<T extends Archive<T>>IllegalArgumentException - If the path is not specifiedArchive.contains(java.lang.String)public Node delete(ArchivePath path)
Node in the Archive at the specified ArchivePath.
If the path is a directory, recursively removes all contents. If the path does
not exist, return null.
delete in interface Archive<T extends Archive<T>>org.jboss.shrinkwrap.api.Archive#delete(org.jboss.declarchive.api.ArchivePath)public Node delete(String archivePath)
Node in the Archive at the ArchivePath indicated
by the specified String archivePath.
If the path is a directory, recursively removes all contents. If the path does
not exist, return null.
delete in interface Archive<T extends Archive<T>>Archive.delete(java.lang.String)public Node get(ArchivePath path)
Node located at the specified path
get in interface Archive<T extends Archive<T>>Node, or null if nothing is found at the specified pathArchive.get(org.jboss.shrinkwrap.api.ArchivePath)public Map<ArchivePath,Node> getContent()
getContent in interface Archive<T extends Archive<T>>Archive.getContent()public Map<ArchivePath,Node> getContent(Filter<ArchivePath> filter)
getContent in interface Archive<T extends Archive<T>>Archive.getContent(org.jboss.shrinkwrap.api.Filter)
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||