コード例 #1
0
 /**
  * get running environment
  *
  * @return
  */
 public static RunningMode getRunningMode() {
   return RunningMode.fromValue(appConfigs.getString("running.mode"));
 }
コード例 #2
0
 /**
  * get maven build time as the version number
  *
  * @return build timestamp
  */
 public static String getBuildVersion() {
   return appConfigs.getString("build.version");
 }
コード例 #3
0
 /**
  * The program running environment is product environment ?
  *
  * @return
  */
 public static boolean isProduct() {
   String mode = appConfigs.getString("running.mode");
   if (mode.equals("product")) return true;
   else return false;
 }