Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Composite1

Code Block

<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>