Class ScxConfig
java.lang.Object
cool.scx.config.source.AbstractConfigSource
cool.scx.config.source.MultiConfigSource
cool.scx.config.ScxConfig
-
Field Summary
Fields inherited from class cool.scx.config.source.AbstractConfigSource
configMapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode从配置文件中获取配置值 没有找到会返回 null<T> Tget(String keyPath, ScxConfigValueHandler<T> handler) <T> T<T> TgetOrDefault(String keyPath, T defaultVal) Methods inherited from class cool.scx.config.source.MultiConfigSource
bindOnChange, loadFromSourcesMethods inherited from class cool.scx.config.source.AbstractConfigSource
callOnChange, configMapping, onChange
-
Constructor Details
-
ScxConfig
-
-
Method Details
-
get
从配置文件中获取配置值 没有找到会返回 null- Parameters:
keyPath- keyPath- Returns:
- a T object.
-
get
-
getOrDefault
-
get
-