|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BundleDependencyService
The BundleDependencyService declares an API that allows the
dependencies between installed bundles to be queried. The interface supports
adding and removing an object as a BundleDependencyListener.
The interface also provides a way for bundles to communicate that they should be considered uninstallable, meaning that they wish to be automatically uninstalled when their last dependent bundle is uninstalled.
| Field Summary | |
|---|---|
static String |
BDS_STATUS_PROPERTY
|
static String |
SERVICE_NAME
The OSGi service name for BundleDependencyService. |
| Method Summary | |
|---|---|
void |
addBundleDependencyListener(BundleDependencyListener listener)
Add a BundleDependencyListener. |
void |
addUninstallableBundle(Bundle bundle)
Adds a Bundle to the collection of uninstallable bundles. |
List |
getAllDependentsOf(Bundle bundle)
Query for all the dependents of the specified bundle. |
List |
getAllPrerequisitesOf(Bundle bundle)
Query for all the prerequisites of the specified bundle. |
List |
getBundleActivationManagerIds()
Query for all the BundleActivationManager ids. |
Collection |
getBundles()
Get all the bundles. |
List |
getDependentsOf(Bundle bundle)
Query for the immediate dependents of the specified bundle. |
List |
getPrerequisitesOf(Bundle bundle)
Query for the immediate prerequisites of the specified bundle. |
List |
getUnacquiredImportedServiceNames(String id)
Get the unacquired imported services of the IBundleActivationManager with the specified id. |
List |
getUnacquiredOptionalImportedServiceNames(String id)
Get the unacquired optional imported services of the IBundleActivationManager with the specified id. |
boolean |
isRegisteredAsUninstallable(Bundle bundle)
Answers true if a bundle is registered as uninstallable, otherwise false. |
void |
removeBundleDependencyListener(BundleDependencyListener listener)
Add a BundleDependencyListener. |
void |
removeUninstallableBundle(Bundle bundle)
Removes a Bundle from the collection of uninstallable bundles. |
String |
toXml()
Convert the state of the BundleDependencyService to XML. |
String |
toXml(int indent)
Convert the state of the BundleDependencyService to XML. |
| Field Detail |
|---|
static final String BDS_STATUS_PROPERTY
static final String SERVICE_NAME
BundleDependencyService.
| Method Detail |
|---|
void addBundleDependencyListener(BundleDependencyListener listener)
BundleDependencyListener.
listener - A BundleDependencyListener.void addUninstallableBundle(Bundle bundle)
Bundle to the collection of uninstallable bundles.
bundle - An uninstallable Bundle.List getAllDependentsOf(Bundle bundle)
bundle - A Bundle.
List getAllPrerequisitesOf(Bundle bundle)
bundle - A Bundle.
- Returns:
ListList getBundleActivationManagerIds()
BundleActivationManager ids.
ListCollection getBundles()
CollectionList getDependentsOf(Bundle bundle)
bundle - A Bundle.
List getPrerequisitesOf(Bundle bundle)
bundle - A Bundle.
List getUnacquiredImportedServiceNames(String id)
IBundleActivationManager with the specified id.
id - The id of a IBundleActivationManager.
List getUnacquiredOptionalImportedServiceNames(String id)
IBundleActivationManager with the specified id.
id - The id of a IBundleActivationManager.
boolean isRegisteredAsUninstallable(Bundle bundle)
bundle - The Bundle to be queried.
void removeBundleDependencyListener(BundleDependencyListener listener)
BundleDependencyListener.
listener - a BundleDependencyListeer.void removeUninstallableBundle(Bundle bundle)
Bundle from the collection of uninstallable bundles.
bundle - An uninstallable Bundle.String toXml()
BundleDependencyService to XML.
String toXml(int indent)
BundleDependencyService to XML.
indent - The indent level at which to start.
|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.