public class IgnoreTopLevelConverterNotFoundBindHandler extends AbstractBindHandler
BindHandler that can be used to ignore top-level
ConverterNotFoundExceptions.DEFAULT| Constructor and Description |
|---|
IgnoreTopLevelConverterNotFoundBindHandler()
Create a new
IgnoreTopLevelConverterNotFoundBindHandler instance. |
IgnoreTopLevelConverterNotFoundBindHandler(BindHandler parent)
Create a new
IgnoreTopLevelConverterNotFoundBindHandler instance with a
specific parent. |
| Modifier and Type | Method and Description |
|---|---|
Object |
onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error)
Called when binding fails for any reason (including failures from
BindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object) calls). |
onFinish, onStart, onSuccesspublic IgnoreTopLevelConverterNotFoundBindHandler()
IgnoreTopLevelConverterNotFoundBindHandler instance.public IgnoreTopLevelConverterNotFoundBindHandler(BindHandler parent)
IgnoreTopLevelConverterNotFoundBindHandler instance with a
specific parent.parent - the parent handlerpublic Object onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) throws Exception
BindHandlerBindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object) calls). Implementations may choose to swallow exceptions and
return an alternative result.onFailure in interface BindHandleronFailure in class AbstractBindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contexterror - the cause of the error (if the exception stands it may be re-thrown)null).Exception - if the binding isn't validCopyright © 2020 Pivotal Software, Inc.. All rights reserved.