Annotation Interface UltiToolsModule


@Retention(RUNTIME) @Target(TYPE) @EnableAutoRegister @I18n public @interface UltiToolsModule
UltiTools module annotation.
See Also:
  • Element Details

    • scanBasePackages

      String[] scanBasePackages
      Returns:
      scan base packages
      Default:
      {}
    • scanBasePackageClasses

      Class<?>[] scanBasePackageClasses
      Returns:
      scan base package classes
      Default:
      {}
    • eventListener

      boolean eventListener
      Returns:
      whether auto register event listener
      Default:
      true
    • cmdExecutor

      boolean cmdExecutor
      Returns:
      whether auto register command executor
      Default:
      true
    • config

      boolean config
      Returns:
      whether auto register config entity
      Default:
      true
    • i18n

      @Deprecated(since="6.5.0", forRemoval=true) String[] i18n
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated since 6.5.0. Since 6.3.0, languages come from the lang/* files the module JAR ships (.json, .yml, or .yaml), not this alias. Remove the attribute and ship the language files instead. This attribute may be removed as early as 6.6.0.
      Returns:
      legacy language declarations, used only for missing-resource diagnostics
      Default:
      {}
    • additionalEntities

      Class<?>[] additionalEntities
      Entity classes this module owns that live outside its own JAR -- a shared library JAR, a multi-module build's common artifact, or a plugin suite's shared JAR. The module's own JAR is always scanned for @Table classes automatically; this attribute is additive to that scan, not a replacement for it. Equivalent to JPA's <jar-file> persistence-unit element.

      Validated, not trusted (02-14). Each class must live on this module's own classpath -- either its own JAR, or a jar/module not already known to belong to a different, already-discovered module. A class that structurally belongs to a DIFFERENT module (its own JAR, or one already recorded as owned by another module) fails plugin registration with a com.ultikits.ultitools.exceptions.PluginModuleException instead of silently granting this module a working DataOperator for another module's entity.

      Returns:
      additional entity classes
      Since:
      6.3.0
      Default:
      {}