Annotation Interface ModuleOrdinal


@Documented @Retention(RUNTIME) @Target(MODULE) public @interface ModuleOrdinal
Annotation to override the module order for the ServiceFinder.

By default, the ModuleSorter organizes resources within named modules according to their module ordinal. By default, the ordinal is taken from the module descriptor and multiplied by 100 for sorting. Higher numbers come first. Sometimes, however, an application module must override this default order to make sure that the correct implementation for a service is used. In such cases, the module can be annotated with @ModuleOrdinal. Example:

   @ModuleOrdinal(1350)
   module org.tentackle.bundlemonkey.common {
   ...
   }
 
Author:
harald
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    Gets the fixed ordinal.
  • Element Details

    • value

      int value
      Gets the fixed ordinal.
      Returns:
      the ordinal