java - Spring configuration: How to export util:list based bean in osgi:service? -
i have bean defined <util:list id="mylist"></util:list>
now need export <osgi:service>
. this
<osgi:service ref="beantobeexported" interface="com.xyz.messageservice"/>
but don't know set interface. me?
and cardinality set in <osgi:reference>
?
you can use bean-name attribute.
bean-name convenient shortcut specifying filter expression matches on bean-name property automatically advertised beans published using service element.
<osgi:service ref="mylist" interface="java.util.list"/> <osgi:reference id="myid" bean-name="mylist" interface="java.util.list" />
you use service properties , filter expressions instead bean-name more straightforward.
you can read more here.
Comments
Post a Comment