Class PropertySource

java.lang.Object
org.springframework.cloud.config.environment.PropertySource

public class PropertySource extends Object
Simple plain text serializable encapsulation of a named source of key-value pairs. Basically a DTO for PropertySource, but also applicable outside the domain of a Spring application.
Author:
Dave Syer
  • Constructor Details

    • PropertySource

      public PropertySource(String name, Map<?,?> source)
    • PropertySource

      public PropertySource(String name, Map<?,?> source, org.springframework.core.env.PropertySource<?> originalPropertySource)
  • Method Details

    • getName

      public String getName()
    • getSource

      public Map<?,?> getSource()
    • getOriginalPropertySource

      public org.springframework.core.env.PropertySource<?> getOriginalPropertySource()
    • toString

      public String toString()
      Overrides:
      toString in class Object