class DirectoryRevision extends BundleArchiveRevision
This class implements a bundle archive revision for exploded bundle JAR files. It uses the specified location directory "in-place" to execute the bundle and does not copy the bundle content at all.
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
m_refDir |
private WeakZipFileFactory |
m_zipFactory |
| Constructor and Description |
|---|
DirectoryRevision(Logger logger,
java.util.Map configMap,
WeakZipFileFactory zipFactory,
java.io.File revisionRootDir,
java.lang.String location) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
This method is called when the revision is no longer needed.
|
Content |
getContent() |
java.util.Map |
getManifestHeader()
Returns the main attributes of the JAR file manifest header of the
revision.
|
getConfig, getLocation, getLogger, getRevisionRootDirprivate final WeakZipFileFactory m_zipFactory
private final java.io.File m_refDir
public DirectoryRevision(Logger logger, java.util.Map configMap, WeakZipFileFactory zipFactory, java.io.File revisionRootDir, java.lang.String location) throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map getManifestHeader()
throws java.lang.Exception
BundleArchiveRevisionReturns the main attributes of the JAR file manifest header of the revision. The returned map is case insensitive.
getManifestHeader in class BundleArchiveRevisionjava.lang.Exception - if any error occurs.public Content getContent() throws java.lang.Exception
getContent in class BundleArchiveRevisionjava.lang.Exceptionprotected void close()
throws java.lang.Exception
BundleArchiveRevisionThis method is called when the revision is no longer needed. The directory associated with the revision will automatically be removed for each revision, so this method only needs to be concerned with other issues, such as open files.
close in class BundleArchiveRevisionjava.lang.Exception - if any error occurs.