Introduction
Stage Tag
A component type may declare a dependency on an arbitary number of lifecycle stages. Each stage corresponds to a lifecycle extension that will be applied to the component in the order corresponding to the ordering of stage tags. A container is responsible for the construction and deployment of an extension stage handler capable of servicing the stage dependency.
Attributes
Attribute | Required | Description |
---|---|---|
id | yes |
A value that identifies an entension to be applied to the component during deployment. |
Example
package net.osm.vault; import org.apache.avalon.playground.Demonstratable; /** * Example of a component declaring a stage dependency. * * @avalon.component version="0.1" name="extended-component" * @avalon.stage id="urn:somewhere:demonstratable" */ public class DemoComponent implements Demonstratable { ... }
Generated meta-info type descriptor:
<type> <info> <version>0.1.0</version> <name>extended-component</name> </info> <stages> <stage id="urn:somewhere:demonstratable"/> </stages> </type>