[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] BundleContext and getName
- From: Peter Kriens <Peter.Kriens@xxxxxxxx>
- Date: Mon, 6 Oct 2003 21:48:48 +0200
- Delivered-to: firstname.lastname@example.org
- Organization: aQute
I saw the discussion regarding the extra method in BundleContext to
get a bundle from its name.
We had this discussion in the past year in the OSGi and decided -not- to
extend the BundleContext interface to keep it as simple as possible.
There was quite a bit discussion about this.
One thing that I proposed, which would more or less fit with the
existing standard, is to register the bundle objects in the registry
with properties for name, id, module, version, etc. This will allow
you search for bundles with an OSGi filter. This may be a cleaner
method than adding methods to BundleContext
PR> Currently BundleContext.getName(String) uses the Bundle-name entry to do
PR> the lookup.
PR> Now that we have Bundle-uniqueId, it seems to me that it would be more
PR> appropriate to do the lookup on this value.
PR> Any comments?
Peter Kriens Mob. +46705950899
34 Place René Nelli Tel. +33467871853
34670 Baillargues, France AOL: pkriens