com.sun.enterprise.deploy.shared
Class AbstractReadableArchive

java.lang.Object
  extended by com.sun.enterprise.deploy.shared.AbstractReadableArchive
All Implemented Interfaces:
Archive, ReadableArchive
Direct Known Subclasses:
FileArchive, MultiReadableArchive

public abstract class AbstractReadableArchive
extends Object
implements ReadableArchive

Common methods for ReadableArchive implementations


Field Summary
protected  Map<Class<?>,Object> extraData
           
protected  ReadableArchive parentArchive
           
 
Constructor Summary
AbstractReadableArchive()
           
 
Method Summary
<U> U
getExtraData(Class<U> dataType)
          Returns any data that could have been calculated as part of the descriptor loading.
 ReadableArchive getParentArchive()
          get the parent archive of this archive
<U> void
removeExtraData(Class<U> dataType)
           
<U> void
setExtraData(Class<U> dataType, U instance)
           
 void setParentArchive(ReadableArchive parentArchive)
          set the parent archive for this archive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.api.deployment.archive.ReadableArchive
delete, exists, exists, getEntry, getEntrySize, getSubArchive, open, renameTo
 
Methods inherited from interface org.glassfish.api.deployment.archive.Archive
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory
 

Field Detail

parentArchive

protected ReadableArchive parentArchive

extraData

protected Map<Class<?>,Object> extraData
Constructor Detail

AbstractReadableArchive

public AbstractReadableArchive()
Method Detail

setParentArchive

public void setParentArchive(ReadableArchive parentArchive)
set the parent archive for this archive

Specified by:
setParentArchive in interface ReadableArchive
Parameters:
parentArchive - the parent archive

getParentArchive

public ReadableArchive getParentArchive()
get the parent archive of this archive

Specified by:
getParentArchive in interface ReadableArchive
Returns:
the parent archive

getExtraData

public <U> U getExtraData(Class<U> dataType)
Returns any data that could have been calculated as part of the descriptor loading.

Specified by:
getExtraData in interface ReadableArchive
Parameters:
dataType - the type of the extra data
Returns:
the extra data or null if there are not an instance of type dataType registered.

setExtraData

public <U> void setExtraData(Class<U> dataType,
                             U instance)
Specified by:
setExtraData in interface ReadableArchive

removeExtraData

public <U> void removeExtraData(Class<U> dataType)
Specified by:
removeExtraData in interface ReadableArchive


Copyright © 2012 GlassFish Community. All Rights Reserved.