ConfigurationPropertiesBean

Provides access to @ConfigurationProperties bean details, regardless of if the annotation was used directly or on a @Bean factory method. This class can be used to access all configuration properties beans in an ApplicationContext, or individual beans on a case-by-case basis (for example, in a BeanPostProcessor).

Author

Phillip Webb

Since

2.2.0

See also

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun asBindTarget(): Bindable<out Any>
Return a Bindable instance suitable that can be used as a target for the Binder.
Link copied to clipboard
open fun get(applicationContext: ApplicationContext, bean: Any, beanName: String): ConfigurationPropertiesBean
Return a @ConfigurationPropertiesBean instance for the given bean details or null if the bean is not a @ConfigurationProperties object.
Link copied to clipboard
Return all @ConfigurationProperties beans contained in the given application context.
Link copied to clipboard
Return the ConfigurationProperties annotation for the bean.