--- Den man 24/5/10 skrev Richard S. Hall <[email protected]>: > Fra: Richard S. Hall <[email protected]> > Emne: Re: problem: getResources("META-INF/services/..") does not return all > from imported bundles? > If the required bundle exports META-INF/services, then it > should work.
What is the syntax for exporting resources ? Does OSGI specify inport/export of non-java package stuff at all ? > However, technically, OSGi only supports exporting packages > and > META-INF/services is not a package so it is not supposed to > work. Yes, that is what I am afraid of. It seems the OSGI guys did not think about resources - only classes ? (So require bundle does not in fact import everything - only the classes). > > Any advice ? > Typically, the approach is to use the extender pattern to > listen for > META-INF/services and then somehow register the provider so > it can be used. Yes, I am also thinking about extender patteren. The problem is that jruby uses many more non-class resources that will also not work with classloader.getRessources. So after registering, JRuby will fail later on when trying to load its *.rb files etc. Thanks for your answer! /Morten --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

