public class BundleTrackerFactory extends Object
| Constructor and Description |
|---|
BundleTrackerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<List<org.osgi.util.tracker.BundleTracker>> |
getAllBundleTracker()
get all bundle tracker registered in this factory
|
static List<org.osgi.util.tracker.BundleTracker> |
getBundleTrackerList(String bundleScope)
get bundle tracker based on bundle name and version
|
static List<org.osgi.util.tracker.BundleTracker> |
getBundleTrackerList(String symbolicName,
org.osgi.framework.Version version)
get bundle tracker based on composite bundle's symbolicName and version
|
static void |
registerBundleTracker(String bundleScope,
org.osgi.util.tracker.BundleTracker bt)
register the bundle tracker
|
static void |
unregisterAndCloseBundleTracker(String bundleScope)
unregister and close the bundle tracker(s) associated with composite
bundle's - SymbolicName_Version
|
public static List<org.osgi.util.tracker.BundleTracker> getBundleTrackerList(String bundleScope)
bundleScope - composite bundle's - SymbolicName_Versionpublic static List<org.osgi.util.tracker.BundleTracker> getBundleTrackerList(String symbolicName, org.osgi.framework.Version version)
symbolicName - composite bundle's symbolicNameversion - composite bundle's versionpublic static Collection<List<org.osgi.util.tracker.BundleTracker>> getAllBundleTracker()
public static void registerBundleTracker(String bundleScope, org.osgi.util.tracker.BundleTracker bt)
bundleScope - composite bundle's SymbolicName_Versionbt - the bundle tracker to be registeredpublic static void unregisterAndCloseBundleTracker(String bundleScope)
bundleScope - composite bundle's - SymbolicName_VersionCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.