类 PropertySourceOrigin

java.lang.Object
cn.taketoday.origin.PropertySourceOrigin
所有已实现的接口:
Origin

public class PropertySourceOrigin extends Object implements Origin
Origin from a PropertySource.
从以下版本开始:
4.0
作者:
Phillip Webb, Harry Yang
  • 构造器详细资料

    • PropertySourceOrigin

      public PropertySourceOrigin(cn.taketoday.core.env.PropertySource<?> propertySource, String propertyName)
      Create a new PropertySourceOrigin instance.
      参数:
      propertySource - the property source
      propertyName - the name from the property source
  • 方法详细资料

    • getPropertySource

      public cn.taketoday.core.env.PropertySource<?> getPropertySource()
      Return the origin PropertySource.
      返回:
      the origin property source
    • getPropertyName

      public String getPropertyName()
      Return the property name that was used when obtaining the original value from the property source.
      返回:
      the origin property name
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • get

      public static Origin get(cn.taketoday.core.env.PropertySource<?> propertySource, String name)
      Get an Origin for the given PropertySource and propertyName. Will either return an OriginLookup result or a PropertySourceOrigin.
      参数:
      propertySource - the origin property source
      name - the property name
      返回:
      the property origin