类 SearchableProperties
java.lang.Object
com.alibaba.nacos.client.env.SearchableProperties
- 所有已实现的接口:
NacosClientProperties
Searchable NacosClientProperties. the SearchableProperties that it can be specified search order by nacos.env.first
- 作者:
- onewe
-
字段概要
字段修饰符和类型字段说明private static final CompositeConverter(专用程序包) static final SearchablePropertiesprivate static final JvmArgsPropertySourceprivate static final org.slf4j.Loggerprivate final PropertiesPropertySourceprivate final List<AbstractPropertySource> private static final List<SourceType> private static final SystemEnvPropertySource从接口继承的字段 com.alibaba.nacos.client.env.NacosClientProperties
PROTOTYPE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddProperties(Properties properties) add properties.get properties from NacosClientProperties.private List<AbstractPropertySource> build(AbstractPropertySource... propertySources) booleancontainsKey(String key) Tests if the specified object is a key in this NacosClientProperties.derive()create a new NacosClientProperties which scope is itself.derive(Properties properties) create a new NacosClientProperties from NacosClientProperties#PROTOTYPE and init.getBoolean(String key) get boolean, if the value can not be got by the special key, the null will be returned.getBoolean(String key, Boolean defaultValue) get boolean, if the value can not be got by the special key, the default value will be returned.getInteger(String key) get integer, if the value can not be got by the special key, the null will be returned.getInteger(String key, Integer defaultValue) get integer, if the value can not be got by the special key, the default value will be returned.get long, if the value can not be got by the special key, the null will be returned.get long, if the value can not be got by the special key, the default value will be returned.getProperties(SourceType source) get property from special property source.getProperty(String key) get property, if the value can not be got by the special key, the null will be returned.getProperty(String key, String defaultValue) get property, if the value can not be got by the special key, the default value will be returned.getPropertyFrom(SourceType source, String key) get property from special property source.private static List<SourceType> init()private <T> Optional<T> voidsetProperty(String key, String value) set property.
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
JVM_ARGS_PROPERTY_SOURCE
-
SYSTEM_ENV_PROPERTY_SOURCE
-
SEARCH_ORDER
-
CONVERTER
-
INSTANCE
-
propertySources
-
propertiesPropertySource
-
-
构造器详细资料
-
SearchableProperties
private SearchableProperties() -
SearchableProperties
-
-
方法详细资料
-
init
-
getProperty
从接口复制的说明:NacosClientPropertiesget property, if the value can not be got by the special key, the null will be returned.- 指定者:
getProperty在接口中NacosClientProperties- 参数:
key- special key- 返回:
- string value or null.
-
getProperty
从接口复制的说明:NacosClientPropertiesget property, if the value can not be got by the special key, the default value will be returned.- 指定者:
getProperty在接口中NacosClientProperties- 参数:
key- special keydefaultValue- default value- 返回:
- string value or default value.
-
getPropertyFrom
从接口复制的说明:NacosClientPropertiesget property from special property source.- 指定者:
getPropertyFrom在接口中NacosClientProperties- 参数:
source- source typekey- special key- 返回:
- string value or null.
- 另请参阅:
-
getProperties
从接口复制的说明:NacosClientPropertiesget property from special property source.- 指定者:
getProperties在接口中NacosClientProperties- 参数:
source- source type- 返回:
- string value or null.
- 另请参阅:
-
getBoolean
从接口复制的说明:NacosClientPropertiesget boolean, if the value can not be got by the special key, the null will be returned.- 指定者:
getBoolean在接口中NacosClientProperties- 参数:
key- special key- 返回:
- boolean value or null.
-
getBoolean
从接口复制的说明:NacosClientPropertiesget boolean, if the value can not be got by the special key, the default value will be returned.- 指定者:
getBoolean在接口中NacosClientProperties- 参数:
key- special keydefaultValue- default value- 返回:
- boolean value or defaultValue.
-
getInteger
从接口复制的说明:NacosClientPropertiesget integer, if the value can not be got by the special key, the null will be returned.- 指定者:
getInteger在接口中NacosClientProperties- 参数:
key- special key- 返回:
- integer value or null
-
getInteger
从接口复制的说明:NacosClientPropertiesget integer, if the value can not be got by the special key, the default value will be returned.- 指定者:
getInteger在接口中NacosClientProperties- 参数:
key- special keydefaultValue- default value- 返回:
- integer value or default value
-
getLong
从接口复制的说明:NacosClientPropertiesget long, if the value can not be got by the special key, the null will be returned.- 指定者:
getLong在接口中NacosClientProperties- 参数:
key- special key- 返回:
- long value or null
-
getLong
从接口复制的说明:NacosClientPropertiesget long, if the value can not be got by the special key, the default value will be returned.- 指定者:
getLong在接口中NacosClientProperties- 参数:
key- special keydefaultValue- default value- 返回:
- long value or default value
-
setProperty
从接口复制的说明:NacosClientPropertiesset property.- 指定者:
setProperty在接口中NacosClientProperties- 参数:
key- keyvalue- value
-
addProperties
从接口复制的说明:NacosClientPropertiesadd properties.- 指定者:
addProperties在接口中NacosClientProperties- 参数:
properties- properties
-
asProperties
从接口复制的说明:NacosClientPropertiesget properties from NacosClientProperties.- 指定者:
asProperties在接口中NacosClientProperties- 返回:
- properties
-
containsKey
从接口复制的说明:NacosClientPropertiesTests if the specified object is a key in this NacosClientProperties.- 指定者:
containsKey在接口中NacosClientProperties- 参数:
key- key – possible key- 返回:
- true if and only if the specified object is a key in this NacosClientProperties, false otherwise.
-
search
-
build
-
derive
从接口复制的说明:NacosClientPropertiescreate a new NacosClientProperties which scope is itself.- 指定者:
derive在接口中NacosClientProperties- 返回:
- NacosClientProperties
-
derive
从接口复制的说明:NacosClientPropertiescreate a new NacosClientProperties from NacosClientProperties#PROTOTYPE and init.- 指定者:
derive在接口中NacosClientProperties- 参数:
properties- properties- 返回:
- NacosClientProperties
-