|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
SERVICE_NAME
|
| Method Summary | |
void |
addBundleDependencyListener(BundleDependencyListener listener)
Add a BundleDependencyListener. |
void |
addUninstallableBundle(Bundle bundle)
Adds a Bundle to the collection of uninstallable bundles. |
List |
getAllDependentOf(Bundle bundle)
Query for all the dependents of the specified bundle. |
List |
getAllPrerequisitesOf(Bundle bundle)
Query for all the prerequisites of the specified bundle. |
Collection |
getBundles()
Get all the bundles. |
List |
getDependentOf(Bundle bundle)
Query for the immediate dependents of the specified bundle. |
List |
getPrerequisitesOf(Bundle bundle)
Query for the immediate prerequisites of the specified bundle. |
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 |
public static final String SERVICE_NAME
| Method Detail |
public void addBundleDependencyListener(BundleDependencyListener listener)
BundleDependencyListener.
listener - A BundleDependencyListener.public void addUninstallableBundle(Bundle bundle)
Bundle to the collection of uninstallable bundles.
bundle - An uninstallable Bundle.public List getAllDependentOf(Bundle bundle)
bundle - A Bundle.
public List getAllPrerequisitesOf(Bundle bundle)
bundle - A Bundle.
- Returns:
Listpublic Collection getBundles()
Collectionpublic List getDependentOf(Bundle bundle)
bundle - A Bundle.
public List getPrerequisitesOf(Bundle bundle)
bundle - A Bundle.
public boolean isRegisteredAsUninstallable(Bundle bundle)
bundle - The Bundle to be queried.
public void removeBundleDependencyListener(BundleDependencyListener listener)
BundleDependencyListener.
listener - a BundleDependencyListeer.public void removeUninstallableBundle(Bundle bundle)
Bundle from the collection of uninstallable bundles.
bundle - An uninstallable Bundle.public String toXml()
BundleDependencyService to XML.
public String toXml(int indent)
BundleDependencyService to XML.
indent - The indent level at which to start.
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.