Debian Codegraph @

src/aQute/bnd/annotation/headers/BundleContributors.java

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 package aQute.bnd.annotation.headers;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8 /**
9 * Maven defines contributors and developers in the POM. This annotation will
10 * generate a (not standardized by OSGi) Bundle-Contributors header.
11 * <p>
12 * This annotation can be used directly on a type or it can 'color' an
13 * annotation. This coloring allows custom annotations that define a specific
14 * contributor. For example:
15 *
16 * <pre>
17 * {@code @}BundleContributor("[email protected]")
18 * {@code @}interface pkriens {} {@code @}pkriens public class MyFoo { ... }
19 * </pre>
20 *
21 * Duplicates are removed before the header is generated and the coloring does
22 * not create an entry in the header, only an annotation on an actual type is
23 * counted. This makes it possible to make a library of contributors without
24 * then adding them all to the header.
25 * <p>
26 * See <a href=https://maven.apache.org/pom.html#Developers>Maven POM
27 * reference</a>
28 */
29 @Retention(RetentionPolicy.CLASS)
30 @Target({
31 ElementType.ANNOTATION_TYPE, ElementType.TYPE
32 })
33 public @interface BundleContributors {
34
35 /**
36 * The email address of the developer.
37 */
38 String value();
39
40 /**
41 * The display name of the developer. If not specified, the {@link #value()}
42 * is used.
43 */
44 String name() default "";
45
46 /**
47 * The roles this contributor plays in the development.
48 */
49 String[] roles() default {};
50
51 /**
52 * The name of the organization where the contributor works for.
53 */
54 String organization() default "";
55
56 /**
57 * The url of the organization where the contributor works for.
58 */
59 String organizationUrl() default "";
60
61 /**
62 * Time offset in hours from UTC without Daylight savings
63 */
64 int timezone() default 0;
65 }