Enum Class SourceType

java.lang.Object
java.lang.Enum<SourceType>
com.alibaba.nacos.client.env.SourceType
所有已实现的接口:
Serializable, Comparable<SourceType>, java.lang.constant.Constable

public enum SourceType extends Enum<SourceType>
properties source type enum.
作者:
onewe
  • 枚举常量详细资料

    • PROPERTIES

      public static final SourceType PROPERTIES
      get value from properties.
    • JVM

      public static final SourceType JVM
      get value from jvm args.
    • ENV

      public static final SourceType ENV
      get value from system environment.
    • UNKNOWN

      public static final SourceType UNKNOWN
      get value from unknown environment, will be search in all properties by orders.
  • 方法详细资料

    • values

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

      public static SourceType 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值