Hello,
Looking at the code, it seems a way to achieve this could be to add some scope 
attribute in blueprint-ext xsd and then have 2 version of TriggerServiceFactory 
on implementing ServiceFactory and other implementing PrototypeServiceFactory. 
Is it worth spending some time to propose a PR for this ? Arnaud    Le jeudi 6 
août 2020 à 17:27:24 UTC+2, Arnaud Mergey <[email protected]> a écrit :  
 
 Hello,I am trying to register a service with prototype scope with Aries 
Blueprint. 
It seems not supported directly in Blueprint specs, but I thought registering a 
org.osgi.framework.PrototypeServiceFactory would have worked but it is not. It 
seems Aries itself is wrapping services in 
org.apache.aries.blueprint.container.ServiceRecipe.TriggerServiceFactory before 
registering it in the osgi runtime, this why my PrototypeServiceFactory is not 
considered as Protoype. 
Is is something that is supposed to work, so I should fill a bug ? or not 
?Best,Arnaud



  

Reply via email to