public class BundleStorageImpl extends java.lang.Object implements BundleStorage
构造器和说明 |
---|
BundleStorageImpl(FrameworkContext framework)
Create a container for all bundle data in this framework.
|
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Close bundle storage.
|
BundleArchive[] |
getAllBundleArchives()
Get all bundle archive objects.
|
java.util.List<java.lang.String> |
getStartOnLaunchBundles()
Get all bundles 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.
|
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(FrameworkContext framework)
public BundleArchive insertBundleJar(java.lang.String location, java.io.InputStream is) throws java.lang.Exception
insertBundleJar
在接口中 BundleStorage
location
- Location of bundle.is
- Input stream with bundle content.java.lang.Exception
public BundleArchive updateBundleArchive(BundleArchive old, java.io.InputStream is) throws java.lang.Exception
replaceBundleArchive
is needed.updateBundleArchive
在接口中 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
在接口中 BundleStorage
oldBA
- BundleArchive to be replaced.newBA
- Inputstrem with bundle content.java.lang.Exception
public BundleArchive[] getAllBundleArchives()
getAllBundleArchives
在接口中 BundleStorage
public java.util.List<java.lang.String> getStartOnLaunchBundles()
getStartOnLaunchBundles
在接口中 BundleStorage
public void close()
close
在接口中 BundleStorage