Enum Class ScxAppFeature

java.lang.Object
java.lang.Enum<ScxAppFeature>
cool.scx.app.enumeration.ScxAppFeature
All Implemented Interfaces:
cool.scx.config.ScxFeature<Boolean>, Serializable, Comparable<ScxAppFeature>, Constable

public enum ScxAppFeature extends Enum<ScxAppFeature> implements cool.scx.config.ScxFeature<Boolean>
scx 特性枚举
Version:
0.0.1
Author:
scx567888
  • Enum Constant Details

    • SHOW_BANNER

      public static final ScxAppFeature SHOW_BANNER
      显示 banner
    • SHOW_OPTIONS_INFO

      public static final ScxAppFeature SHOW_OPTIONS_INFO
      显示 coreConfig 的信息
    • SHOW_MODULE_LIFE_CYCLE_INFO

      public static final ScxAppFeature SHOW_MODULE_LIFE_CYCLE_INFO
      显示模块生命周期信息
    • SHOW_START_UP_INFO

      public static final ScxAppFeature SHOW_START_UP_INFO
      显示启动信息
    • USE_DEVELOPMENT_ERROR_PAGE

      public static final ScxAppFeature USE_DEVELOPMENT_ERROR_PAGE
      是否使用开发人员错误页面
    • ENABLE_SCHEDULING_WITH_ANNOTATION

      public static final ScxAppFeature ENABLE_SCHEDULING_WITH_ANNOTATION
      目前框架中支持两种添加任务调度的方式 [注解 例如 $Scheduled, 或使用 手动配置的方式 $ScxScheduling] 此标识表示是否扫描并启用 使用注解类型的定时任务 默认为 true , 及项目启动时扫描并启动所有的 注解类型定时任务 若设置为 false 则相当与忽略整个项目中所有的 注解类型定时任务 (注意 !!! 手动设置的定时任务 不受此标识影响)
    • ALLOW_CIRCULAR_REFERENCES

      public static final ScxAppFeature ALLOW_CIRCULAR_REFERENCES
      是否允许 bean 之间的循环依赖 默认 false
    • USE_SPY

      public static final ScxAppFeature USE_SPY
      是否使用 SPY 进行 SQL 监控 (注意 !!! 开启会影响性能)
  • Method Details

    • values

      public static ScxAppFeature[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ScxAppFeature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • defaultValue

      public Boolean defaultValue()
      Specified by:
      defaultValue in interface cool.scx.config.ScxFeature<Boolean>