Annotation Interface Application


@Documented @Retention(CLASS) @Target(TYPE) public @interface Application
Declares the application class: its names, as gaia's ApplicationDirectories takes them, and its version.

The processor generates an ApplicationDescriptor for the annotated class, which Swing.launch finds through the ServiceLoader.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the application's name, as gaia's ApplicationDirectories takes it, and the displayed name unless the class's resources give a name key.
    Returns the vendor's top-level domain; only with a vendor().
    Returns the organization or person that makes the application.
    Returns the version, shown in the About dialog.
  • Element Details

    • name

      String name
      Returns the application's name, as gaia's ApplicationDirectories takes it, and the displayed name unless the class's resources give a name key. An empty name is the class's simple name.
      Returns:
      the application's name, such as Counter, or an empty string for the class's simple name
      Default:
      ""
    • vendor

      String vendor
      Returns the organization or person that makes the application.
      Returns:
      the vendor, such as imgn, or an empty string for none
      Default:
      ""
    • qualifier

      String qualifier
      Returns the vendor's top-level domain; only with a vendor().
      Returns:
      the qualifier, such as be, or an empty string for none
      Default:
      ""
    • version

      String version
      Returns the version, shown in the About dialog.
      Returns:
      the version, such as 1.0, or an empty string for none
      Default:
      ""