DefaultPropertiesPropertySource

MapPropertySource containing default properties contributed directly to a SpringApplication. By convention, the DefaultPropertiesPropertySource is always the last property source in the Environment.

Author

Phillip Webb

Since

2.4.0

Constructors

Link copied to clipboard
constructor(source: Map<String, Any>)
Create a new DefaultPropertiesPropertySource with the given Map source.

Properties

Link copied to clipboard
val NAME: String = "defaultProperties"
The name of the 'default properties' property source.

Functions

Link copied to clipboard
open fun addOrMerge(source: Map<String, Any>, sources: MutablePropertySources)
Add a new DefaultPropertiesPropertySource or merge with an existing one.
Link copied to clipboard
Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getProperty(name: String): Any
Link copied to clipboard
Link copied to clipboard
open fun getSource(): T
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasMatchingName(propertySource: PropertySource<out Any>): Boolean
Return true if the given source is named 'defaultProperties'.
Link copied to clipboard
Create a new DefaultPropertiesPropertySource instance if the provided source is not empty.
Link copied to clipboard
open fun moveToEnd(environment: ConfigurableEnvironment)
Move the 'defaultProperties' property source so that it's the last source in the given ConfigurableEnvironment.
open fun moveToEnd(propertySources: MutablePropertySources)
Move the 'defaultProperties' property source so that it's the last source in the given MutablePropertySources.
Link copied to clipboard
open fun named(name: String): PropertySource<out Any>
Link copied to clipboard
open fun toString(): String