Class ConstructorBound
java.lang.Object
org.springframework.boot.context.properties.ConstructorBound
Helper class to programmatically bind configuration properties that use constructor
injection.
- Since:
- 3.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
Create an immutableConfigurationProperties
instance for the specifiedbeanName
andbeanType
using the specifiedBeanFactory
.
-
Constructor Details
-
ConstructorBound
public ConstructorBound()
-
-
Method Details
-
from
public static Object from(org.springframework.beans.factory.BeanFactory beanFactory, String beanName, Class<?> beanType) Create an immutableConfigurationProperties
instance for the specifiedbeanName
andbeanType
using the specifiedBeanFactory
.- Parameters:
beanFactory
- the bean factory to usebeanName
- the name of the beanbeanType
- the type of the bean- Returns:
- an instance from the specified bean
-