Package org.apache.aries.util.tracker
Class BundleTrackerFactory
- java.lang.Object
-
- org.apache.aries.util.tracker.BundleTrackerFactory
-
public class BundleTrackerFactory extends java.lang.ObjectThis is the factory for BundleTracker
-
-
Constructor Summary
Constructors Constructor Description BundleTrackerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<java.util.List<BundleTracker>>getAllBundleTracker()get all bundle tracker registered in this factorystatic java.util.List<BundleTracker>getBundleTrackerList(java.lang.String bundleScope)get bundle tracker based on bundle name and versionstatic java.util.List<BundleTracker>getBundleTrackerList(java.lang.String symbolicName, Version version)get bundle tracker based on composite bundle's symbolicName and versionstatic voidregisterBundleTracker(java.lang.String bundleScope, BundleTracker bt)register the bundle trackerstatic voidunregisterAndCloseBundleTracker(java.lang.String bundleScope)unregister and close the bundle tracker(s) associated with composite bundle's - SymbolicName_Version
-
-
-
Method Detail
-
getBundleTrackerList
public static java.util.List<BundleTracker> getBundleTrackerList(java.lang.String bundleScope)
get bundle tracker based on bundle name and version- Parameters:
bundleScope- composite bundle's - SymbolicName_Version- Returns:
- the list of bundle tracker associated with the bundle scope
-
getBundleTrackerList
public static java.util.List<BundleTracker> getBundleTrackerList(java.lang.String symbolicName, Version version)
get bundle tracker based on composite bundle's symbolicName and version- Parameters:
symbolicName- composite bundle's symbolicNameversion- composite bundle's version- Returns:
- the list of bundle tracker associated with the bundle scope
-
getAllBundleTracker
public static java.util.Collection<java.util.List<BundleTracker>> getAllBundleTracker()
get all bundle tracker registered in this factory- Returns:
- all the trackers registered. The collection contains a List
for each bundle scope.
-
registerBundleTracker
public static void registerBundleTracker(java.lang.String bundleScope, BundleTracker bt)register the bundle tracker- Parameters:
bundleScope- composite bundle's SymbolicName_Versionbt- the bundle tracker to be registered
-
unregisterAndCloseBundleTracker
public static void unregisterAndCloseBundleTracker(java.lang.String bundleScope)
unregister and close the bundle tracker(s) associated with composite bundle's - SymbolicName_Version- Parameters:
bundleScope- composite bundle's - SymbolicName_Version
-
-