You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Composite1

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
    targetNamespace="http://sample"
    xmlns:sample="http://sample"
    name="Composite1">

    <component name="ComponentA">
        <implementation.java class="sample.ComponentAImpl"/>
    </component>

    <component name="ComponentB">
        <!-- Implemented by Composite3 -->
        <implementation.composite name="sample:Composite3"/>
        
        <!-- Wired to ComponentA -->
        <reference name="Reference1" target="ComponentA"/>

        <property name="Property1">ABC</property>
    </component>
    
    <!-- ComponentB.Service1 is promoted -->
    <service name="Service1" promote="ComponentB/Service1" />

</composite>
  • No labels