aboutsummaryrefslogtreecommitdiffstats
path: root/annotations/src/main/java/com/yahoo/osgi/annotation/Version.java
blob: b1f465f8136c0885eeed547d7b705b5f04168c2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.osgi.annotation;

/**
 * Version of an exported package
 * The default version is 1.0.0
 * @see <a href="http://www.osgi.org/javadoc/r4v43/org/osgi/framework/Version.html">Osgi version documentation</a>
 * @author Tony Vaagenes
 */
public @interface Version {

    /** must be non-negative **/
    int major() default 1;

    /** must be non-negative **/
    int minor() default 0;

    /** must be non-negative **/
    int micro() default 0;

    /** must follow the format (alpha|digit|'_'|'-')+ **/
    String qualifier() default "";

}