类 OriginTrackedMapPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<Map<String,Object>>
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
org.springframework.core.env.MapPropertySource
org.springframework.boot.env.OriginTrackedMapPropertySource
- 所有已实现的接口:
OriginLookup<String>
public final class OriginTrackedMapPropertySource
extends MapPropertySource
implements OriginLookup<String>
- 从以下版本开始:
- 2.0.0
- 作者:
- Madhura Bhave, Phillip Webb
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.core.env.PropertySource
PropertySource.StubPropertySource -
字段概要
从类继承的字段 org.springframework.core.env.PropertySource
logger, name, source -
构造器概要
构造器构造器说明OriginTrackedMapPropertySource(String name, Map source) Create a newOriginTrackedMapPropertySourceinstance.OriginTrackedMapPropertySource(String name, Map source, boolean immutable) Create a newOriginTrackedMapPropertySourceinstance. -
方法概要
修饰符和类型方法说明Return the origin of the given key ornullif the origin cannot be determined.getProperty(String name) booleanReturntrueif this lookup is immutable and has contents that will never change.从类继承的方法 org.springframework.core.env.MapPropertySource
containsProperty, getPropertyNames从类继承的方法 org.springframework.core.env.PropertySource
equals, getName, getSource, hashCode, named, toString从接口继承的方法 org.springframework.boot.origin.OriginLookup
getPrefix
-
构造器详细资料
-
OriginTrackedMapPropertySource
Create a newOriginTrackedMapPropertySourceinstance.- 参数:
name- the property source namesource- the underlying map source
-
OriginTrackedMapPropertySource
Create a newOriginTrackedMapPropertySourceinstance.- 参数:
name- the property source namesource- the underlying map sourceimmutable- if the underlying source is immutable and guaranteed not to change- 从以下版本开始:
- 2.2.0
-
-
方法详细资料
-
getProperty
- 覆盖:
getProperty在类中MapPropertySource
-
getOrigin
从接口复制的说明:OriginLookupReturn the origin of the given key ornullif the origin cannot be determined.- 指定者:
getOrigin在接口中OriginLookup<String>- 参数:
name- the key to lookup- 返回:
- the origin of the key or
null
-
isImmutable
public boolean isImmutable()从接口复制的说明:OriginLookupReturntrueif this lookup is immutable and has contents that will never change.- 指定者:
isImmutable在接口中OriginLookup<String>- 返回:
- if the lookup is immutable
-