I have not tired this and don't know if in fact Aries blueprint supports managed service factories yet, although I think it is a goal to do so.
If you can figure out how to set up your blueprint stuff as one or more managed service factories, then nothing will be created by default, but for each configuration with the appropriate factory pid you will get a copy of your blueprint components.. I have figured out how to use managed service factories with declarative services and find it very handy for this kind of scenario. hope this helps and someone who knows if aries blueprint supports managed service factories can explain more. thanks david jencks On Dec 10, 2011, at 1:24 AM, Bengt Rodehav wrote: > I'm currently using iPOJO to publish OSGi services. The main reason why I'm > using iPOJO (instead of blueprint) is that I can easily disable/enable my > services by using iPOJO's @Controller annotation. To enable my service I just > change a configuration property to false and to enable it I set it to true > again. > > I would like to use blueprint instead. Mainly because: > > a) Blueprint comes out-of-the-box with Apache Karaf > b) Blueprint feels more like a standard > c) Blueprint does not require any manipulation > > Is there a way to achieve the same functionality with blueprint (to > enble/disable services using a configuration property)? > > /Bengt
