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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(ConfigurationPropertyName name) Get the configuration property bound to the given name.static BoundConfigurationPropertiesget(ApplicationContext context) Return theBoundConfigurationPropertiesfrom the givenApplicationContextif 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 theBoundConfigurationPropertiesfrom the givenApplicationContextif it is available.- Parameters:
context- the context to search- Returns:
- a
BoundConfigurationPropertiesornull
-