Class BoundConfigurationProperties
java.lang.Object
org.springframework.boot.context.properties.BoundConfigurationProperties
Bean to record and provide bound
@ConfigurationProperties
.- Since:
- 2.3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(ConfigurationPropertyName name) Get the configuration property bound to the given name.static BoundConfigurationProperties
get
(org.springframework.context.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
public static BoundConfigurationProperties get(org.springframework.context.ApplicationContext context) Return theBoundConfigurationProperties
from the givenApplicationContext
if it is available.- Parameters:
context
- the context to search- Returns:
- a
BoundConfigurationProperties
ornull
-