package com.ctrip.framework.apollo.core.enums;

import com.google.common.base.Preconditions;

/**
 * @author Jason Song(song_s@ctrip.com)
 */
public enum Env{
  LOCAL, DEV, FWS, FAT, UAT, LPT, PRO, TOOLS;

  public static Env fromString(String env) {
    Env environment = EnvUtils.transformEnv(env);
    Preconditions.checkArgument(environment != null, String.format("Env %s is invalid", env));
    return environment;
  }
}

@@ -91,16 +91,708 @@
 s;%0A%0A/**%0A
+ * Here is the brief description for all the predefined environments:%0A * %3Cul%3E%0A *   %3Cli%3ELOCAL: Local Development environment, assume you are working at the beach with no network access%3C/li%3E%0A *   %3Cli%3EDEV: Development environment%3C/li%3E%0A *   %3Cli%3EFWS: Feature Web Service Test environment%3C/li%3E%0A *   %3Cli%3EFAT: Feature Acceptance Test environment%3C/li%3E%0A *   %3Cli%3EUAT: User Acceptance Test environment%3C/li%3E%0A *   %3Cli%3ELPT: Load and Performance Test environment%3C/li%3E%0A *   %3Cli%3EPRO: Production environment%3C/li%3E%0A *   %3Cli%3ETOOLS: Tooling environment, a special area in production environment which allows%0A * access to test environment, e.g. Apollo Portal should be deployed in tools environment%3C/li%3E%0A * %3C/ul%3E%0A *%0A
  * @auth

add environments' description