More than one interface developer. How with OSGi?

I am interested in using OSGI as a plugin management tool for a project. It can be many executors of my interface, each of which appears in its own / separate OSGI bundle with the exported implementation class ...

+3
source share
2 answers

A declarative service should be the way to go.

You can declare your interface as a service.

<service>
    <provide interface="my.Interface"/>
    <property name="foo" value="bar"
</service>

Bundle.
, , - : SCR ( "Runtime Component Runtime" ), " ", DS- OSGi R4.2), OSGI. POJO.

, :

<reference name="myInterfaceServiceName"
    interface="my.Interface"
    bind="myActivationMethod" unbind="myDeactivationMethod"
    cardinality="0..n"/>

.

. Eclipse Extensions and Declarative Services.

: - OSGi , Spring Apache iPOJO, EclipseCON2009, .

+1

(, VonC), .

, , OSGi. , .

+1

Source: https://habr.com/ru/post/1706936/


All Articles