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

Class ValidationBindHandler

    • Constructor Detail

      • ValidationBindHandler

        public ValidationBindHandler(org.springframework.validation.Validator... validators)
      • ValidationBindHandler

        public ValidationBindHandler(BindHandler parent,
                                     org.springframework.validation.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)

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.