summaryrefslogtreecommitdiffstats
path: root/annotations/src/main/java/com/yahoo/osgi/annotation/Version.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /annotations/src/main/java/com/yahoo/osgi/annotation/Version.java
Publish
Diffstat (limited to 'annotations/src/main/java/com/yahoo/osgi/annotation/Version.java')
-rw-r--r--annotations/src/main/java/com/yahoo/osgi/annotation/Version.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/annotations/src/main/java/com/yahoo/osgi/annotation/Version.java b/annotations/src/main/java/com/yahoo/osgi/annotation/Version.java
new file mode 100644
index 00000000000..69379780182
--- /dev/null
+++ b/annotations/src/main/java/com/yahoo/osgi/annotation/Version.java
@@ -0,0 +1,24 @@
+// Copyright 2016 Yahoo Inc. 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 tonytv
+ */
+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 "";
+
+}