public class

MapPropertySource

extends EnumerablePropertySource<T>
java.lang.Object
   ↳ org.springframework.core.env.PropertySource<T>
     ↳ org.springframework.core.env.EnumerablePropertySource<T>
       ↳ org.springframework.core.env.MapPropertySource
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

PropertySource that reads keys and values from a Map object.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.env.EnumerablePropertySource
From class org.springframework.core.env.PropertySource
Protected Constructors
MapPropertySource(String name, Map<StringObject> source)
Public Methods
Object getProperty(String key)
Return the value associated with the given key, null if not found.
String[] getPropertyNames()
Return the names of all properties contained by the source object (never null).
[Expand]
Inherited Methods
From class org.springframework.core.env.EnumerablePropertySource
From class org.springframework.core.env.PropertySource
From class java.lang.Object

Protected Constructors

protected MapPropertySource (String name, Map<StringObject> source)

Also: SpringCore

Public Methods

public Object getProperty (String key)

Also: SpringCore

Return the value associated with the given key, null if not found.

Parameters
key the property key to find

public String[] getPropertyNames ()

Also: SpringCore

Return the names of all properties contained by the source object (never null).