public class NoUnboundElementsBindHandler extends AbstractBindHandler
BindHandler to enforce that all configuration properties under the root name
 have been bound.DEFAULT| Constructor and Description | 
|---|
| NoUnboundElementsBindHandler(BindHandler parent) | 
| NoUnboundElementsBindHandler(BindHandler parent,
                            Function<ConfigurationPropertySource,Boolean> filter) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onFinish(ConfigurationPropertyName name,
        Bindable<?> target,
        BindContext context,
        Object result)Called when binding finishes with either bound or unbound result. | 
| <T> Bindable<T> | onStart(ConfigurationPropertyName name,
       Bindable<T> target,
       BindContext context)Called when binding of an element starts but before any result has been determined. | 
| Object | onSuccess(ConfigurationPropertyName name,
         Bindable<?> target,
         BindContext context,
         Object result)Called when binding of an element ends with a successful result. | 
onFailurepublic NoUnboundElementsBindHandler(BindHandler parent)
public NoUnboundElementsBindHandler(BindHandler parent, Function<ConfigurationPropertySource,Boolean> filter)
public <T> Bindable<T> onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context)
BindHandleronStart in interface BindHandleronStart in class AbstractBindHandlerT - the bindable source typename - the name of the element being boundtarget - the item being boundcontext - the bind contextnull)public Object onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result)
BindHandleronSuccess in interface BindHandleronSuccess in class AbstractBindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contextresult - the bound result (never null)null)public void onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) throws Exception
BindHandlerBindHandler.onFailure(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Exception).onFinish in interface BindHandleronFinish in class AbstractBindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contextresult - the bound result (may be null)Exception - if the binding isn't validCopyright © 2020 Pivotal Software, Inc.. All rights reserved.