You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4addba6
Browse filesBrowse the repository at this point in the historyBrowse files
Refresh site docs and turn the container guides into a migration guide
The container tutorials and guides keep their addresses but now point to the
replacements (Eclipse Sisu, plexus-testing, maven-plugin-testing) through
guides/migrating-from-plexus-container.
This repository holds the source for the [Codehaus Plexus organization site](https://codehaus-plexus.github.io/), including the component index and reference pages.
3
+
This repository holds the source of the [Codehaus Plexus organization site](https://codehaus-plexus.github.io/):
4
+
the list of Plexus libraries, with a link to each project site, and the documentation of the retired
5
+
Plexus container. Each library publishes its own site from its own repository.
4
6
5
-
Maintainers publish the site as described in [RELEASING.md](https://github.com/codehaus-plexus/.github/blob/master/RELEASING.md) in the shared `.github` repository.
7
+
Run `mvn site` to render the site into `target/site`. Maintainers publish it as described in
8
+
[RELEASING.md](https://github.com/codehaus-plexus/.github/blob/master/RELEASING.md) in the shared
9
+
`.github` repository. Contributor notes are in [AGENTS.md](AGENTS.md).
Copy file name to clipboardExpand all lines: src/site/markdown/guides/developer-guide/appendices/javadoc-tags-reference.md
+4-29Lines changed: 4 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,43 +6,18 @@ author:
6
6
date: 2006-07-09
7
7
---
8
8
9
-
`The contents of this document are a work in progress`
10
-
11
9
# Javadoc Tags used by Plexus tools
12
10
13
-
Here is a reference of the Javadoc annotations that can be used to 'decorate' the Java sources to allow Plexus tools like Component Descriptor Creator (CDC) to generate Component Descriptors.
|[@plexus.component](#@plexus.component)|Class|Yes|Indicate to Plexus CDC that the class is a component|
18
-
|[@plexus.configuration](#@plexus.configuration)|Field|No|Tell Plexus CDC that this item should be configured through the `components.xml`|
19
-
|[@plexus.requirement](#@plexus.requirement)|Field|No|Indicate to Plexus CDC that the field is required by the component|
11
+
The Plexus container is retired and archived, so this page no longer carries the instructions it once had. It stays at this address because other sites link to it. The original page listed the Javadoc tags read by the Component Descriptor Creator.
20
12
21
13
# @plexus.component
22
14
23
-
The `@plexus.component` tag is used to show that the class it annotates is a plexus component. This will add a `<component`\> element to the `<components`\> in components.xml. The following parameters are available, but remember the `role` is required. The text in the javadoc tag describing this class is copied into the component's `<description`\> tag.
24
-
25
-
|**Parameter**|**Required**|**Description**|
26
-
|---|---|---|
27
-
|role|Yes|The role that this class provides an implementation for (usually the class name of an implemented Interface|
28
-
|role-hint|No|The hints are used to differentiate multiple implementations of the same role|
29
-
|version|No|Set the version of the component|
15
+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection) and [Component index](/guides/migrating-from-plexus-container.html#Component_index).
30
16
31
17
# @plexus.configuration
32
18
33
-
The `@plexus.configuration` tags are used to mark fields in a class for configuration through the `components.xml`.
34
-
35
-
|**Parameter**|**Required**|**Description**|
36
-
|---|---|---|
37
-
|default-value|Currently|The default values are currently required for the `<configuration`> tag to be written to `components.xml`.|
19
+
Replaced by [Configuration](/guides/migrating-from-plexus-container.html#Configuration).
38
20
39
21
# @plexus.requirement
40
22
41
-
Tagging a field with `@plexus.requirement` will tell plexus to inject the required component or list of components before the component itself is started. Fields can be of the type of the Interface defining the component you wish to be injected or of type `java.util.List` or `java.util.Map`.
42
-
43
-
Fields of type `java.lang.List` will have a list of components injected whereas a field of type `java.lang.Map` will have a mapping in the form of `role-hint -> component`. The `role` parameter is required if using a `List` or `Map` whereas a role-hint is not allowed.
44
-
45
-
|**Parameter**|**Required**|**Description**|
46
-
|---|---|---|
47
-
|role|No. Yes if the field is a `List` or a `Map`|The role parameter is used to tell plexus what Component role you are interested in. For singleton fields their type is used as a default.|
48
-
|role-hint|No. Not allowed if the field is a `List` or a `Map`|Links to the role-hint defined by a component when looking up a component. Not allowed with `List` or `Map` fields, as they return all `role-hint`s.|
23
+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection).
Copy file name to clipboardExpand all lines: src/site/markdown/guides/developer-guide/building-applications/cdc.md
+4-100Lines changed: 4 additions & 100 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,114 +6,18 @@ author:
6
6
date: 2006-07-09
7
7
---
8
8
9
-
`The contents of this document are a work in progress`
10
-
11
9
# Plexus Component Descriptor Creator
12
10
13
-
**NOTE: This document and the CDC itself is currently a work in progress.**
14
-
15
-
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.
16
-
17
-
There is a tag for marking components, requirements and configuration. Each of the tags can have parameters as documented below.
11
+
The Plexus container is retired and archived, so this page no longer carries the instructions it once had. It stays at this address because other sites link to it. The original page described the Javadoc tags that generated `components.xml`.
18
12
19
13
## Component Tag Parameters
20
14
21
-
|**Tag**|**Required**|**Description**|
22
-
|---|---|---|
23
-
|role|y|The role of the component.|
24
-
|role-hint|n|The role-hint of the component.|
25
-
|version|n|The component version.|
26
-
|lifecycle-handler|n|The lifecycle handler of the component. _TODO: link to the different lifecycle handlers_|
27
-
|instantiation-strategy|n|The instantiation strategy of the component. _TODO: link to the different instantiation strategies_|
28
-
29
-
<!-- TODO: This line will be incorrectly render the *name* of the table as well -->
30
-
<!-- as the caption -->
31
-
<!-- [plexus-component-tags] Plexus Component Tag Parameters -->
32
-
33
-
```
34
-
package org.foo;
35
-
36
-
/**
37
-
* @plexus.component
38
-
* role="com.foo.ActionManager"
39
-
* lifecycle-handler="plexus-configurable"
40
-
*/
41
-
public class DefaultActionManager
42
-
extends AbstractLogEnabled
43
-
implements ActionManager, Serviceable
44
-
{
45
-
```
46
-
47
-
<!-- [example-class-tags] Example Component Tag -->
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection) and [Component index](/guides/migrating-from-plexus-container.html#Component_index).
57
16
58
17
## Requirement Tag Parameters
59
18
60
-
These tags are used on fields to state requirements. TODO: it should be possible to override the role for a normal field.
61
-
62
-
|**Tag**|**Required**|**Description**|
63
-
|---|---|---|
64
-
|role|y/n|The role of the component. Only required if the field is a List or Map|
65
-
|role-hint|n|The role-hint of the component.|
66
-
67
-
```
68
-
/**
69
-
* @plexus.requirement
70
-
* role-hint="foo"
71
-
*/
72
-
private ActionManager actionManager;
73
-
```
74
-
75
-
<!-- [example-requirement-tags] Example Requirement Tag -->
0 commit comments