1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.codehaus.plexus.metadata.gleaner.ann;
18
19 import java.util.List;
20
21 import org.codehaus.plexus.component.annotations.Component;
22 import org.codehaus.plexus.component.annotations.Configuration;
23 import org.codehaus.plexus.component.annotations.Requirement;
24
25
26
27
28 @Component(type = "foo", role = AnnotatedComponentRole.class)
29 public class AnnotatedComponent implements AnnotatedComponentRole {
30
31 @Requirement(hint = "default")
32 @Configuration(name = "param", value = "value")
33 AnnotatedComponentDependency dependency;
34
35 @Requirement(
36 role = AnnotatedComponentDependency.class,
37 hints = {"release", "latest", "snapshot"})
38 List<AnnotatedComponentDependency> dependency2;
39 }