Class ImmutableMapPropertySource


  • public class ImmutableMapPropertySource
    extends org.springframework.core.env.MapPropertySource
    Immutable MapPropertySource
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    MapPropertySource
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

        org.springframework.core.env.PropertySource.StubPropertySource
    • Field Summary

      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutableMapPropertySource​(java.lang.String name, java.util.Map source)
      Create a new immutable MapPropertySource with the given name and Map.
    • Method Summary

      • Methods inherited from class org.springframework.core.env.MapPropertySource

        containsProperty, getProperty, getPropertyNames
      • Methods inherited from class org.springframework.core.env.PropertySource

        equals, getName, getSource, hashCode, named, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ImmutableMapPropertySource

        public ImmutableMapPropertySource​(java.lang.String name,
                                          java.util.Map source)
        Create a new immutable MapPropertySource with the given name and Map.
        Parameters:
        name - the associated name
        source - the Map source (without null values in order to get consistent MapPropertySource.getProperty(java.lang.String) and MapPropertySource.containsProperty(java.lang.String) behavior)