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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -