Component Type Descriptors and Deployment Directives
Component as a Part Strategy
The transit part XML-schema specification provides support for the declaration of specialized deployment strategies. The DPML component schema is defined as a specialization of the part strategy. As such, a component directive may be used within the scope of an enclosing part.
The following example demonstrates the definition of a part using a component directive as the part deployment strategy.
<?xml version="1.0"?> <part xmlns="link:xsd:dpml/lang/dpml-part#1.0"> <info/> <component xmlns="link:xsd:dpml/lang/dpml-component#1.0" type="org.acme.Widget"/> <classpath> <private> <uri>artifact:jar:acme/widget/acme-widget#1.2.3</uri> </private> </classpath> </part>