类 ServiceConfig


  • public class ServiceConfig
    extends java.lang.Object
    全局配置信息
    版本:
    1.0
    作者:
    xuanc
    • 构造器概要

      构造器 
      构造器 说明
      ServiceConfig​(java.lang.String domain)  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void buildGlobal​(java.lang.String domain)
      init config
      static void clean()
      clean config config
      static ServiceConfig getGlobalConfig()
      获取全局配置类
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ServiceConfig

        public ServiceConfig​(java.lang.String domain)
    • 方法详细资料

      • buildGlobal

        public static void buildGlobal​(java.lang.String domain)
                                throws ConfigException
        init config
        参数:
        domain - 域名
        抛出:
        ConfigException - 若全局配置非空时,抛出异常
      • getGlobalConfig

        public static ServiceConfig getGlobalConfig()
        获取全局配置类
        返回:
        全局配置
      • clean

        public static void clean()
        clean config config