org.springframework.boot.context.properties.bind

Class BoundPropertiesTrackingBindHandler

    • Constructor Detail

      • BoundPropertiesTrackingBindHandler

        public BoundPropertiesTrackingBindHandler(java.util.function.Consumer<ConfigurationProperty> consumer)
    • Method Detail

      • onSuccess

        public java.lang.Object onSuccess(ConfigurationPropertyName name,
                                          Bindable<?> target,
                                          BindContext context,
                                          java.lang.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)