|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.framework.cache.BundleArchive
org.apache.felix.framework.SystemBundleArchive
public class SystemBundleArchive
This class represents the bundle archive of the system bundle. It is a special case that is mostly just an empty implementation, since the system bundle is not a real archive.
Field Summary |
---|
Fields inherited from class org.apache.felix.framework.cache.BundleArchive |
---|
FILE_PROTOCOL, INPUTSTREAM_PROTOCOL, REFERENCE_PROTOCOL |
Constructor Summary | |
---|---|
SystemBundleArchive(BundleCache cache)
|
Method Summary | |
---|---|
void |
dispose()
|
org.osgi.framework.BundleActivator |
getActivator(IModule module)
Returns the serialized activator for this archive. |
java.lang.String |
getCurrentLocation()
|
java.io.File |
getDataFile(java.lang.String fileName)
Returns a File object corresponding to the data file of the relative path of the specified string. |
long |
getId()
Returns the bundle identifier associated with this archive. |
java.lang.String |
getLocation()
Returns the location string associated with this archive. |
java.util.Map |
getManifestHeader(int revision)
|
int |
getPersistentState()
Returns the persistent state of this archive. |
BundleRevision |
getRevision(int i)
Returns the revision object for the specified revision. |
int |
getRevisionCount()
Returns the number of revisions available for this archive. |
int |
getStartLevel()
Returns the start level of this archive. |
void |
purge()
This method removes all old revisions associated with the archive and keeps only the current revision. |
void |
revise(java.lang.String location,
java.io.InputStream is)
This method adds a revision to the archive. |
void |
setActivator(java.lang.Object obj)
Serializes the activator for this archive. |
void |
setCurrentLocation(java.lang.String location)
|
void |
setManifestHeader(java.util.Map headerMap)
|
void |
setPersistentState(int state)
Sets the persistent state of this archive. |
void |
setStartLevel(int level)
Sets the the start level of this archive this archive. |
Methods inherited from class org.apache.felix.framework.cache.BundleArchive |
---|
getLastModified, setLastModified, undoRevise |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemBundleArchive(BundleCache cache)
Method Detail |
---|
public long getId()
BundleArchive
Returns the bundle identifier associated with this archive.
getId
in class BundleArchive
public java.lang.String getLocation() throws java.lang.Exception
BundleArchive
Returns the location string associated with this archive.
getLocation
in class BundleArchive
java.lang.Exception
- if any error occurs.public java.lang.String getCurrentLocation() throws java.lang.Exception
java.lang.Exception
public void setCurrentLocation(java.lang.String location) throws java.lang.Exception
java.lang.Exception
public int getPersistentState() throws java.lang.Exception
BundleArchive
Returns the persistent state of this archive. The value returned is one of the following: Bundle.INSTALLED, Bundle.ACTIVE, or Bundle.UNINSTALLED.
getPersistentState
in class BundleArchive
java.lang.Exception
- if any error occurs.public void setPersistentState(int state) throws java.lang.Exception
BundleArchive
Sets the persistent state of this archive. The value is one of the following: Bundle.INSTALLED, Bundle.ACTIVE, or Bundle.UNINSTALLED.
setPersistentState
in class BundleArchive
state
- the persistent state value to set for this archive.
java.lang.Exception
- if any error occurs.public int getStartLevel() throws java.lang.Exception
BundleArchive
Returns the start level of this archive.
getStartLevel
in class BundleArchive
java.lang.Exception
- if any error occurs.public void setStartLevel(int level) throws java.lang.Exception
BundleArchive
Sets the the start level of this archive this archive.
setStartLevel
in class BundleArchive
level
- the start level to set for this archive.
java.lang.Exception
- if any error occurs.public java.io.File getDataFile(java.lang.String fileName) throws java.lang.Exception
BundleArchive
Returns a File object corresponding to the data file of the relative path of the specified string.
getDataFile
in class BundleArchive
java.lang.Exception
- if any error occurs.public org.osgi.framework.BundleActivator getActivator(IModule module) throws java.lang.Exception
BundleArchive
Returns the serialized activator for this archive. This is an extension to the OSGi specification.
getActivator
in class BundleArchive
java.lang.Exception
- if any error occurs.public void setActivator(java.lang.Object obj) throws java.lang.Exception
BundleArchive
Serializes the activator for this archive.
setActivator
in class BundleArchive
obj
- the activator to serialize.
java.lang.Exception
- if any error occurs.public int getRevisionCount()
BundleArchive
Returns the number of revisions available for this archive.
getRevisionCount
in class BundleArchive
public BundleRevision getRevision(int i)
BundleArchive
Returns the revision object for the specified revision.
getRevision
in class BundleArchive
public void revise(java.lang.String location, java.io.InputStream is) throws java.lang.Exception
BundleArchive
This method adds a revision to the archive. The revision is created based on the specified location and/or input stream.
revise
in class BundleArchive
location
- the location string associated with the revision.
java.lang.Exception
- if any error occurs.public void purge() throws java.lang.Exception
BundleArchive
This method removes all old revisions associated with the archive and keeps only the current revision.
purge
in class BundleArchive
java.lang.Exception
- if any error occurs.public void dispose() throws java.lang.Exception
java.lang.Exception
public java.util.Map getManifestHeader(int revision)
public void setManifestHeader(java.util.Map headerMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |