OSGI-INF.blueprint.config.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nazgul-test-hello-client-blueprint Show documentation
Show all versions of nazgul-test-hello-client-blueprint Show documentation
Nazgul Framework: Test client bundle using the Hello API service APIs.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> <!-- Add a blueprint-style service listener. --> <bean id="helloClient" class="se.jguru.nazgul.test.bundles.hello.client.blueprint.HelloClient" activation="lazy" init-method="start"> <argument type="java.lang.String" value="DasHelloClientThread"/> <argument type="java.lang.Integer" value="5"/> </bean> <!-- Find list holding to all Hello service references available. Note that we desire service object population [member-type="service-object"] in the list (as opposed to a List holding ServiceReferences [member-type="service-reference"]). --> <reference-list id="HelloServices" interface="se.jguru.nazgul.core.test.bundles.hello.api.Hello" member-type="service-object"> <reference-listener ref="helloClient" bind-method="addHelloService" unbind-method="removeHelloService" /> </reference-list> <!-- Export the callTrace as a service of our own. --> <service id="helloClientCallTrace" ref="helloClient" interface="se.jguru.nazgul.core.test.bundles.hello.api.calltrace.CallTrace" activation="eager" /> </blueprint>