[osgi-dev] best pattern for instance factories

2012-12-19 Thread Raymond Auge
Hello All, I'd like to asked what is the suggested method for creating instance factories according to the service pattern. i.e. I would like to obtain a list of stateless instances which are single use and which are subsequently simply collected. I'm thinking service factory but I'm not sure

Re: [osgi-dev] best pattern for instance factories

2012-12-19 Thread Raymond Auge
Ok, I think what I may need is in fact a Handler registry service whereby bundles get the handler service and register any handler instances they have by event type. Later when an event requires processing, the handler service is called to locate handlers by type. This is pretty much the osgi

Re: [osgi-dev] best pattern for instance factories

2012-12-19 Thread BJ Hargrave
FYI, I have made a design proposal for Core R6 to allow prototype scope services which can create multiple service objects for a client bundle. For backwards compatibility reasons, this will require both the producer and consumer to opt-in to using prototype scope services. The design proposal