In addition to grabbing the list of implementors (which the given link should help with) I'm guessing you may have problems using the services outside the framework you've grabbed them from, because of the ClassLoader isolation involved. If that's not the case then great :-) But if it is then give Transloader <http://code.google.com/p/transloader/> a try. I've been developing it for just this purpose.
Jeremy On Thu, Mar 13, 2008 at 5:35 AM, Richard S. Hall <[EMAIL PROTECTED]> wrote: > Here is the link: > > http://cwiki.apache.org/FELIX/launching-and-embedding-apache-felix.html > > -> richard > > jaredmac wrote: > > I have an application in which non-bundle code would like to access > > registered services/bundles loaded by Felix. For example, I have Bundle > X > > whose activate() method gets a reference to all the currently registered > > implementers of Interface Y. Can other non-bundle parts of the > application > > code get that list of implementers from Bundle X? > > > > The trivial approach wherein Bundle X puts the list of implementors in > some > > static variable does not work because Bundle X is loaded via a separate > > classloader from the application. > > > > What is the best practice, short of having every part of the application > be > > a bundle, for non-bundles to get at the bundles? > > > > Thanks, > > Jared > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

