Class ConstructorBound

java.lang.Object
org.springframework.boot.context.properties.ConstructorBound

public abstract class ConstructorBound extends Object
Helper class to programmatically bind configuration properties that use constructor injection.
Since:
3.0.0
See Also:
  • Constructor Details

    • ConstructorBound

      public ConstructorBound()
  • Method Details

    • from

      public static Object from(org.springframework.beans.factory.BeanFactory beanFactory, String beanName, Class<?> beanType)
      Create an immutable ConfigurationProperties instance for the specified beanName and beanType using the specified BeanFactory.
      Parameters:
      beanFactory - the bean factory to use
      beanName - the name of the bean
      beanType - the type of the bean
      Returns:
      an instance from the specified bean