类 OriginTrackedMapPropertySource

所有已实现的接口:
OriginLookup<String>

public final class OriginTrackedMapPropertySource extends MapPropertySource implements OriginLookup<String>
OriginLookup backed by a Map containing OriginTrackedValues.
从以下版本开始:
2.0.0
作者:
Madhura Bhave, Phillip Webb
另请参阅:
  • 构造器详细资料

    • OriginTrackedMapPropertySource

      public OriginTrackedMapPropertySource(String name, Map source)
      Create a new OriginTrackedMapPropertySource instance.
      参数:
      name - the property source name
      source - the underlying map source
    • OriginTrackedMapPropertySource

      public OriginTrackedMapPropertySource(String name, Map source, boolean immutable)
      Create a new OriginTrackedMapPropertySource instance.
      参数:
      name - the property source name
      source - the underlying map source
      immutable - if the underlying source is immutable and guaranteed not to change
      从以下版本开始:
      2.2.0
  • 方法详细资料

    • getProperty

      public Object getProperty(String name)
      覆盖:
      getProperty 在类中 MapPropertySource
    • getOrigin

      public Origin getOrigin(String name)
      从接口复制的说明: OriginLookup
      Return the origin of the given key or null if the origin cannot be determined.
      指定者:
      getOrigin 在接口中 OriginLookup<String>
      参数:
      name - the key to lookup
      返回:
      the origin of the key or null
    • isImmutable

      public boolean isImmutable()
      从接口复制的说明: OriginLookup
      Return true if this lookup is immutable and has contents that will never change.
      指定者:
      isImmutable 在接口中 OriginLookup<String>
      返回:
      if the lookup is immutable