ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base
Class MemoryMapArchiveImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.ArchiveBase<T>
      extended by org.jboss.shrinkwrap.impl.base.MemoryMapArchiveBase<MemoryMapArchive>
          extended by org.jboss.shrinkwrap.impl.base.MemoryMapArchiveImpl
Type Parameters:
T -
All Implemented Interfaces:
Archive<MemoryMapArchive>, Assignable, ArchiveFormatAssociable, Configurable, MemoryMapArchive

public class MemoryMapArchiveImpl
extends MemoryMapArchiveBase<MemoryMapArchive>
implements MemoryMapArchive

MemoryMapArchiveImpl A default implementation for all MemoryMap archives. Thread-safe.

Version:
$Revision: $
Author:
John Bailey

Constructor Summary
MemoryMapArchiveImpl(Configuration configuration)
          Constructor This constructor will generate a unique Archive.getName() per instance.
MemoryMapArchiveImpl(String archiveName, Configuration configuration)
          Constructor This constructor will generate an Archive with the provided name.
 
Method Summary
protected  Class<MemoryMapArchive> getActualClass()
          Returns the actual typed class for this instance, used in safe casting for covariant return types
 
Methods inherited from class org.jboss.shrinkwrap.impl.base.MemoryMapArchiveBase
add, add, add, addAsDirectory, contains, contains, delete, delete, get, getContent, getContent
 
Methods inherited from class org.jboss.shrinkwrap.impl.base.ArchiveBase
add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, as, covariantReturn, equals, get, 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, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, addAsDirectory, contains, contains, delete, delete, get, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getContent, getContent, getName, merge, merge, merge, merge, merge, merge, toString, toString, toString, writeTo
 
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
 

Constructor Detail

MemoryMapArchiveImpl

public MemoryMapArchiveImpl(Configuration configuration)
                     throws IllegalArgumentException
Constructor This constructor will generate a unique Archive.getName() per instance.

Parameters:
configuration - The configuration for this archive
Throws:
IllegalArgumentException - If the configuration is not specified

MemoryMapArchiveImpl

public MemoryMapArchiveImpl(String archiveName,
                            Configuration configuration)
                     throws IllegalArgumentException
Constructor This constructor will generate an Archive with the provided name.

Parameters:
archiveName -
configuration - The configuration for this archive
Throws:
IllegalArgumentException - If the name or configuration is not specified
Method Detail

getActualClass

protected Class<MemoryMapArchive> getActualClass()
Returns the actual typed class for this instance, used in safe casting for covariant return types

Specified by:
getActualClass in class ArchiveBase<MemoryMapArchive>
Returns:
See Also:
ArchiveBase.getActualClass()

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.