org.springframework.boot.context.properties.bind.validation

Class ValidationBindHandler

    • Constructor Detail

      • ValidationBindHandler

        public ValidationBindHandler(Validator... validators)
      • ValidationBindHandler

        public ValidationBindHandler(BindHandler parent,
                                     Validator... validators)
    • Method Detail

      • onSuccess

        public Object onSuccess(ConfigurationPropertyName name,
                                Bindable<?> target,
                                BindContext context,
                                Object result)
        Description copied from interface: BindHandler
        Called when binding of an element ends with a successful result. Implementations may change the ultimately returned result or perform addition validation.
        Specified by:
        onSuccess in interface BindHandler
        Overrides:
        onSuccess in class AbstractBindHandler
        Parameters:
        name - the name of the element being bound
        target - the item being bound
        context - the bind context
        result - the bound result (never null)
        Returns:
        the actual result that should be used (may be null)