View Javadoc

1   package com.atlassian.plugin;
2   
3   /**
4    * This represents the application that uses the plugin system.
5    *
6    * @since 2.14.0
7    */
8   public interface Application
9   {
10      /**
11       * The application key, e.g. confluence or jira or fisheye, etc.
12       *
13       * @return an application key
14       */
15      String getKey();
16  
17      /**
18       * The version of the application, as a string. This is for example, 2.1, 3.0.1-beta1, etc.
19       *
20       * @return the version
21       */
22      String getVersion();
23  
24      /**
25       * The build number of the application, as a string. This build number is parseable as an integer.
26       * So doing {@code Integer.parseInt(getBuildNumber())} should not thrown any exception.
27       *
28       * @return the build number
29       */
30      String getBuildNumber();
31  }