Class MemoryMapArchiveBase<T extends Archive<T>>
java.lang.Object
org.jboss.shrinkwrap.impl.base.ArchiveBase<T>
org.jboss.shrinkwrap.impl.base.MemoryMapArchiveBase<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Archive<T>, Assignable, ArchiveFormatAssociable, Configurable, Identifiable
- Direct Known Subclasses:
MemoryMapArchiveImpl
public abstract class MemoryMapArchiveBase<T extends Archive<T>>
extends ArchiveBase<T>
implements Archive<T>
MemoryMapArchiveBase
A base implementation for all MemoryMap archives. Thread-safe.
- Version:
- $Revision: $
- Author:
- John Bailey, Aslak Knutsen
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryMapArchiveBase(String archiveName, Configuration configuration) ConstructorMemoryMapArchiveBase(Configuration configuration) Constructor -
Method Summary
Modifier and TypeMethodDescriptionadd(Archive<?> archive, String path, Class<? extends StreamExporter> exporter) add(Archive<?> archive, ArchivePath path, Class<? extends StreamExporter> exporter) add(Asset asset, ArchivePath path) addAsDirectory(ArchivePath path) addHandlers(ArchiveEventHandler... handlers) booleanbooleancontains(ArchivePath path) delete(ArchivePath path) get(ArchivePath path) getContent(Filter<ArchivePath> filter) Methods inherited from class ArchiveBase
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, as, covariantReturn, equals, filter, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getConfiguration, getId, getName, hashCode, merge, merge, merge, merge, merge, merge, move, move, setId, shallowCopy, shallowCopy, toString, toString, toString, writeToMethods inherited from interface Archive
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, filter, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getId, getName, merge, merge, merge, merge, merge, merge, move, move, shallowCopy, shallowCopy, toString, toString, toString, writeToMethods inherited from interface Assignable
as
-
Constructor Details
-
MemoryMapArchiveBase
ConstructorThis constructor will generate a unique
Archive.getName()per instance.- Parameters:
configuration- The configuration for this archive- Throws:
IllegalArgumentException- If the configuration is not specified
-
MemoryMapArchiveBase
public MemoryMapArchiveBase(String archiveName, Configuration configuration) throws IllegalArgumentException ConstructorThis constructor will generate an
Archivewith the provided name.- Parameters:
archiveName- The name for the archiveconfiguration- The configuration for this archive- Throws:
IllegalArgumentException- If the name or configuration is not specified
-
-
Method Details
-
add
-
add
-
add
-
addAsDirectory
- Specified by:
addAsDirectoryin interfaceArchive<T extends Archive<T>>- Throws:
IllegalArgumentException- See Also:
-
addHandlers
- Specified by:
addHandlersin interfaceArchive<T extends Archive<T>>- See Also:
-
contains
-
contains
-
delete
-
delete
-
get
-
getContent
- Specified by:
getContentin interfaceArchive<T extends Archive<T>>- See Also:
-
getContent
- Specified by:
getContentin interfaceArchive<T extends Archive<T>>- See Also:
-