DPML Metro: Component Directive
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.

Sample Component Directive

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

<part xmlns="dpml:part">
  <component xmlns="dpml:metro" name="demo" class="org.acme.Demo"/>