All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.config.xml Maven / Gradle / Ivy

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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy