Annotation Interface Module


@Target(TYPE) @Retention(CLASS) public @interface Module
Module 修饰的类或接口表示一个模块,编译时会自动生成相应模块的 getXXEnvironment() 和 setXXEnvironment() 方法。

一个被 Module 修饰的类或接口中,可以有 n (n大于0) 个被 Environment 修饰的属性,表示该模块中有 n 种环境。

A class or interface decorated with Module represents a module that automatically generates the getXXEnvironment() and setXXEnvironment() methods of the corresponding module at compile time.

A class or interface decorated with Module can have n (n is greater than 0) attributes modified by Environment, indicating that there are n environments in the module.

  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
     
  • 元素详细资料

    • alias

      String alias
      返回:
      用来指定当前 Module 的别名

      Used to specify the current alias for Module

      默认值:
      ""