org.springframework.boot.context.properties.bind

Interface BindConstructorProvider

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface BindConstructorProvider
    Strategy interface used to determine a specific constructor to use when binding.
    Since:
    2.2.1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.reflect.Constructor<?> getBindConstructor(Bindable<?> bindable, boolean isNestedConstructorBinding)
      Return the bind constructor to use for the given bindable, or null if constructor binding is not supported.
    • Method Detail

      • getBindConstructor

        java.lang.reflect.Constructor<?> getBindConstructor(Bindable<?> bindable,
                                                            boolean isNestedConstructorBinding)
        Return the bind constructor to use for the given bindable, or null if constructor binding is not supported.
        Parameters:
        bindable - the bindable to check
        isNestedConstructorBinding - if this binding is nested within a constructor binding
        Returns:
        the bind constructor or null