We have a little library we use called Eos to do ManagedServiceFactories
(ManagedService is a bit easier):

https://github.com/savoirtech/eos

The "itest" module(s) have an example of how to wire it up using Blueprint:

https://github.com/savoirtech/eos/blob/master/itest/bundle/src/main/resources/OSGI-INF/blueprint/itest-bundle.xml

It's not well-documented at the moment, but it is in Maven Central, so
you're definitely welcome to it.  There are also some nice superclasses for
dealing with the "whiteboard pattern" in there that we use all over the
place.

Thanks,

James



On Sun, Oct 16, 2016 at 7:03 PM Krzysztof Sobkowiak <
krzys.sobkow...@gmail.com> wrote:

> Hi
>
> Are there any samples how to implement correctly the Managed Service and
> Managed Service Factory / Component Factory using the OSGi Declarative
> Services Annotations? Something like in
> https://github.com/apache/karaf/tree/master/scr/examples/managed-service
> and
> https://github.com/apache/karaf/tree/master/scr/examples/component-factory
> but using the org.osgi.service.component.annotations annotations.
>
> Btw. are there any samples how to do this correctly with Blueprint?
>
> Kindly regards
> Krzysztof
>
>
>
>
> --
> Krzysztof Sobkowiak (@ksobkowiak)
>
> JEE & OSS Architect, Integration Architect
> Apache Software Foundation Member (http://apache.org/)
> Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
> Senior Solution Architect @ Capgemini SSC (
> http://www.capgeminisoftware.pl/)
>

Reply via email to