public enum SourceType extends Enum<SourceType>
| 枚举常量和说明 |
|---|
ENV
get value from system environment.
|
JVM
get value from jvm args.
|
PROPERTIES
get value from properties.
|
UNKNOWN
get value from unknown environment, will be search in all properties by orders.
|
public static final SourceType PROPERTIES
public static final SourceType JVM
public static final SourceType ENV
public static final SourceType UNKNOWN
public static SourceType[] values()
for (SourceType c : SourceType.values()) System.out.println(c);
public static SourceType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2018–2024 Alibaba Group. All rights reserved.