Class BoundConfigurationProperties
java.lang.Object
org.springframework.boot.context.properties.BoundConfigurationProperties
Bean to record and provide bound
@ConfigurationProperties
.- Since:
- 2.3.0
- Author:
- Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(ConfigurationPropertyName name) Get the configuration property bound to the given name.static BoundConfigurationProperties
get
(ApplicationContext context) Return theBoundConfigurationProperties
from the givenApplicationContext
if it is available.getAll()
Get all bound properties.
-
Constructor Details
-
BoundConfigurationProperties
public BoundConfigurationProperties()
-
-
Method Details
-
get
Get the configuration property bound to the given name.- Parameters:
name
- the property name- Returns:
- the bound property or
null
-
getAll
Get all bound properties.- Returns:
- a map of all bound properties
-
get
Return theBoundConfigurationProperties
from the givenApplicationContext
if it is available.- Parameters:
context
- the context to search- Returns:
- a
BoundConfigurationProperties
ornull
-