Package org.apache.felix.framework.cache
Class DirectoryRevision
- java.lang.Object
-
- org.apache.felix.framework.cache.BundleArchiveRevision
-
- org.apache.felix.framework.cache.DirectoryRevision
-
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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
m_refDir
private WeakZipFileFactory
m_zipFactory
-
Constructor Summary
Constructors Constructor Description DirectoryRevision(Logger logger, java.util.Map configMap, WeakZipFileFactory zipFactory, java.io.File revisionRootDir, java.lang.String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.felix.framework.cache.BundleArchiveRevision
getConfig, getLocation, getLogger, getRevisionRootDir
-
-
-
-
Field Detail
-
m_zipFactory
private final WeakZipFileFactory m_zipFactory
-
m_refDir
private final java.io.File m_refDir
-
-
Constructor Detail
-
DirectoryRevision
public DirectoryRevision(Logger logger, java.util.Map configMap, WeakZipFileFactory zipFactory, java.io.File revisionRootDir, java.lang.String location) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
getManifestHeader
public java.util.Map getManifestHeader() throws java.lang.Exception
Description copied from class:BundleArchiveRevision
Returns the main attributes of the JAR file manifest header of the revision. The returned map is case insensitive.
- Specified by:
getManifestHeader
in classBundleArchiveRevision
- Returns:
- the case-insensitive JAR file manifest header of the revision.
- Throws:
java.lang.Exception
- if any error occurs.
-
getContent
public Content getContent() throws java.lang.Exception
- Specified by:
getContent
in classBundleArchiveRevision
- Throws:
java.lang.Exception
-
close
protected void close() throws java.lang.Exception
Description copied from class:BundleArchiveRevision
This 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.
- Specified by:
close
in classBundleArchiveRevision
- Throws:
java.lang.Exception
- if any error occurs.
-
-