Annotation Interface SubPackages


@Target(PACKAGE) @Retention(CLASS) @Documented public @interface SubPackages
Annotates a package to indicate that other packages serve exclusively as its dependencies.

Since there may be dependencies in the reverse direction, it is recommended that the concerned packages be built simultaneously.

Since:
1.1
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The names of the packages that serve exclusively as the dependencies of the annotated package.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A short comment why the potentially cyclic dependency between this package and its exclusive dependencies has been accepted.
  • Element Details

    • value

      String[] value
      The names of the packages that serve exclusively as the dependencies of the annotated package.
      Returns:
      the names of the exclusive dependency packages
    • reason

      String reason
      A short comment why the potentially cyclic dependency between this package and its exclusive dependencies has been accepted.
      Returns:
      short comment why the potentially cyclic dependency has been accepted
      Since:
      1.3
      Default:
      ""