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, .