模块 mxlib.api

注释类型 Depend


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Depend
    The depend system use. If the condition is met then the class will load.
    从以下版本开始:
    2.2
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      String value
      The name of depend.
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      int compare
      The compare type will use.
      String version  
    • 元素详细资料

      • value

        String value
        The name of depend.
        返回:
        The name.
      • version

        String version
        默认值:
        ""
      • compare

        int compare
        The compare type will use.
        typeaction
        -1Requires dependencies before this release(including this release)
        -2Requires dependencies before this release (not including this version)
        0Requires dependencies with this release (only this version)
        1Requires dependencies after this release(including this release)
        2Requires dependencies after this release(not including this release)
        返回:
        The compare type
        默认值:
        0