DPML
DPML Metro: Component Directive
HomeUtilitiesStationMetro
Component Directives

A component directive defines a component deployment solution. Technically speaking a directive is expressed as part strategy defintion encapsulating solution data for the construction of a component context model and a component internal structure. The XML defintion is used to establish internal datatypes, which in turn are used to establish the initial state of a component model.

Namespace
dpml:metro
Sample Component Directive

The following sample part XML file contains a component directive as the part strategy definition.

<part xmlns="dpml:part">
  <info/>
  <component xmlns="dpml:metro" name="demo" class="org.acme.Demo"/>
  <classpath>
    <private>
      <uri>artifact:jar:org/acme/acme-hello#1.0.3</uri>
    </private>
  </classpath>
</part>