[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Replacement for PackageAdmin.getBundles
- From: Thomas Watson <tjwatson@xxxxxxxxxx>
- Date: Tue, 22 Feb 2011 08:47:40 -0700
- Delivered-to: email@example.com
- Importance: Normal
There is no replacement for this method. OSGi decided not to provide a replacement for this convenience method in the new wiring API. Instead you have to iterate over the list of installed bundles your self to find the bundles you are looking for. As an aside, Equinox is not going to remove the implementation of PackageAdmin anytime soon. Also note that the implementation of PackageAdmin.getBundles(String, String) is optimized in Equinox to hash on the BSN value. So if you write your own code to do the same thing you could see a slowdown in performance if you are calling this method many times.