Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gemini-dev] Prototype scoped beans


Hi,

I would like to ask couple of questions regarding the bug:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=372650

which talks about supporting "prototype" scope for beans exported as OSGi services. In my tests, such beans behaved similar to beans with "bundle" scope. 

Upon reading "ServiceFactory" facility in OSGi, it seems to me that it is not possible to implement "prototype" scope with the current OSGI specification as the framework calls ServiceFactory.getService() only once for each calling bundle. Is this correct?

Also, as stated above, "prototype" beans get silently converted to "bundle" scoped beans (possibly inadvertently). Isn't it better to fail loading contexts containing such beans? 

Thanks,
Raghu





Back to the top