T
- public abstract class MemoryMapArchiveBase<T extends Archive<T>> extends ArchiveBase<T> implements Archive<T>
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
T |
add(Archive<?> archive,
ArchivePath path,
Class<? extends StreamExporter> exporter) |
T |
add(Archive<?> archive,
String path,
Class<? extends StreamExporter> exporter) |
T |
add(Asset asset,
ArchivePath path) |
T |
addAsDirectory(ArchivePath path) |
T |
addHandlers(ArchiveEventHandler... handlers) |
boolean |
contains(ArchivePath path) |
boolean |
contains(String path) |
Node |
delete(ArchivePath path) |
Node |
delete(String archivePath) |
Node |
get(ArchivePath path) |
Map<ArchivePath,Node> |
getContent() |
Map<ArchivePath,Node> |
getContent(Filter<ArchivePath> filter) |
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, as, covariantReturn, equals, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getConfiguration, getId, getName, hashCode, merge, merge, merge, merge, merge, merge, move, move, setId, shallowCopy, toString, toString, toString, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getId, getName, merge, merge, merge, merge, merge, merge, move, move, shallowCopy, toString, toString, toString, writeTo
as
public MemoryMapArchiveBase(Configuration configuration) throws IllegalArgumentException
Archive.getName()
per instance.configuration
- The configuration for this archiveIllegalArgumentException
- If the configuration is not specifiedpublic MemoryMapArchiveBase(String archiveName, Configuration configuration) throws IllegalArgumentException
Archive
with the provided name.archiveName
- configuration
- The configuration for this archiveIllegalArgumentException
- If the name or configuration is not specifiedpublic T add(Asset asset, ArchivePath path)
public T add(Archive<?> archive, String path, Class<? extends StreamExporter> exporter)
public T add(Archive<?> archive, ArchivePath path, Class<? extends StreamExporter> exporter)
public T addAsDirectory(ArchivePath path) throws IllegalArgumentException
addAsDirectory
in interface Archive<T extends Archive<T>>
IllegalArgumentException
Archive.addAsDirectory(org.jboss.shrinkwrap.api.ArchivePath)
public T addHandlers(ArchiveEventHandler... handlers)
addHandlers
in interface Archive<T extends Archive<T>>
org.jboss.shrinkwrap.api.Archive#addListener(org.jboss.shrinkwrap.api.Filter, org.jboss.shrinkwrap.api.ArchiveEventHandler)
public boolean contains(ArchivePath path)
public boolean contains(String path) throws IllegalArgumentException
contains
in interface Archive<T extends Archive<T>>
IllegalArgumentException
Archive.contains(java.lang.String)
public Node delete(ArchivePath path)
public Node get(ArchivePath path)
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)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.