Class Profile

java.lang.Object
com.codeupsoft.base.common.Profile
Direct Known Subclasses:
BaseApplication

public class Profile extends Object
环境工具.
Author:
Liu,Dongdong
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    支持的环境枚举.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    当前环境.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    判断当前是否为开发环境.
    static boolean
    判断当前是否为集成环境.
    static boolean
    判断当前是否为本地环境.
    static boolean
    判断当前是否为生产环境.
    static boolean
    判断当前是否为测试环境.
    static boolean
    判断当前是否为用户验收测试环境.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CURRENT

      public static String CURRENT
      当前环境.
  • Constructor Details

    • Profile

      public Profile()
  • Method Details

    • isDev

      public static boolean isDev()
      判断当前是否为开发环境.
      Returns:
      true表示是开发环境,false表示不是
    • isProd

      public static boolean isProd()
      判断当前是否为生产环境.
      Returns:
      true表示是生产环境,false表示不是
    • isTest

      public static boolean isTest()
      判断当前是否为测试环境.
      Returns:
      true表示是测试环境,false表示不是
    • isItg

      public static boolean isItg()
      判断当前是否为集成环境.
      Returns:
      true表示是集成环境,false表示不是
    • isUat

      public static boolean isUat()
      判断当前是否为用户验收测试环境.
      Returns:
      true表示是UAT环境,false表示不是
    • isLocal

      public static boolean isLocal()
      判断当前是否为本地环境.
      Returns:
      true表示是本地环境,false表示不是