|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl
public class BundleStorageImpl
Storage of all bundles jar content.
Constructor Summary | |
---|---|
BundleStorageImpl()
Create a container for all bundle data in this framework. |
Method Summary | |
---|---|
BundleArchive[] |
getAllBundleArchives()
Get all bundle archive objects. |
java.util.List |
getStartOnLaunchBundles()
Get all bundles tagged to start at next launch of framework. |
BundleArchive |
insertBundleJar(java.lang.String location,
java.io.InputStream is)
Insert bundle into persistent storage |
void |
replaceBundleArchive(BundleArchive oldBA,
BundleArchive newBA)
Replace old bundle archive with a new updated bundle archive, that was created with updateBundleArchive. |
void |
setCheckSigned(boolean value)
Set if bundles in this storage should check if they are signed. |
BundleArchive |
updateBundleArchive(BundleArchive old,
java.io.InputStream is)
Insert a new jar file into persistent storagedata as an update to an existing bundle archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleStorageImpl()
Method Detail |
---|
public BundleArchive insertBundleJar(java.lang.String location, java.io.InputStream is) throws java.lang.Exception
insertBundleJar
in interface BundleStorage
location
- Location of bundle.is
- Inputstrem with bundle content.
java.lang.Exception
public BundleArchive updateBundleArchive(BundleArchive old, java.io.InputStream is) throws java.lang.Exception
replaceBundleArchive
is needed.
updateBundleArchive
in interface BundleStorage
old
- BundleArchive to be replaced.is
- Inputstrem with bundle content.
java.lang.Exception
public void replaceBundleArchive(BundleArchive oldBA, BundleArchive newBA) throws java.lang.Exception
replaceBundleArchive
in interface BundleStorage
oldBA
- BundleArchive to be replaced.newBA
- Inputstrem with bundle content.
java.lang.Exception
public BundleArchive[] getAllBundleArchives()
getAllBundleArchives
in interface BundleStorage
public java.util.List getStartOnLaunchBundles()
getStartOnLaunchBundles
in interface BundleStorage
public void setCheckSigned(boolean value)
BundleStorage
setCheckSigned
in interface BundleStorage
value
- If true check for certificates.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |