public class BundleStorageImpl extends java.lang.Object implements BundleStorage
| Constructor and Description |
|---|
BundleStorageImpl()
Create a container for all bundle data in this framework.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BundleStorageImpl()
public BundleArchive insertBundleJar(java.lang.String location, java.io.InputStream is) throws java.lang.Exception
insertBundleJar in interface BundleStoragelocation - Location of bundle.is - Inputstrem with bundle content.java.lang.Exceptionpublic BundleArchive updateBundleArchive(BundleArchive old, java.io.InputStream is) throws java.lang.Exception
replaceBundleArchive is needed.updateBundleArchive in interface BundleStorageold - BundleArchive to be replaced.is - Inputstrem with bundle content.java.lang.Exceptionpublic void replaceBundleArchive(BundleArchive oldBA, BundleArchive newBA) throws java.lang.Exception
replaceBundleArchive in interface BundleStorageoldBA - BundleArchive to be replaced.newBA - Inputstrem with bundle content.java.lang.Exceptionpublic BundleArchive[] getAllBundleArchives()
getAllBundleArchives in interface BundleStoragepublic java.util.List getStartOnLaunchBundles()
getStartOnLaunchBundles in interface BundleStoragepublic void setCheckSigned(boolean value)
BundleStoragesetCheckSigned in interface BundleStoragevalue - If true check for certificates.