The contents of this document are a work in progress

Plexus Component Descriptor Creator

NOTE: This document and the CDC itself is currently a work in progress.

The Component Descriptor Creator (or CDC for short) is a tool that will create the components.xml file from your Java code. It uses JavaDoc tags to gather the information it needs to create the component descriptor.

There is a tag for marking components, requirements and configuration. Each of the tags can have parameters as documented below.

Component Tag Parameters

TagRequiredDescription
roleyThe role of the component.
role-hintyThe role-hint of the component.
versionnThe component version.
lifecycle-handlernThe lifecycle handler of the component.
TODO: link to the different lifecycle handlers
instantiation-strategynThe instantiation strategy of the component.
TODO: link to the different instantiation strategies
/**
 * @plexus.component
 *   lifecycle-handler="plexus-configurable"
 */
public class DefaultActionManager
    extends AbstractLogEnabled
    implements ActionManager, Serviceable
{

Requirement Tag Parameters

These tags are used on fields to state requirements. TODO: it should be possible to override the role for a normal field.

TagRequiredDescription
roley/nOnly required if the field is a List or Map
role-hintn
/**
 * @plexus.requirement
 *  role-hint="foo"
 */
private ActionManager actionManager;

Configuration Tag Parameters

Note that the default value tag won't be required in the future when these tags will be used to generate a separate configuration declaration section.

TagRequiredDescription
default-valueySets the default value for the configuration field
/**
 * @plexus.configuration
 *  default-value="Trygve"
 */
private String name;