@FunctionalInterface public interface BindConstructorProvider
Modifier and Type | Field and Description |
---|---|
static BindConstructorProvider |
DEFAULT
Default
BindConstructorProvider implementation that only returns a value
when there's a single constructor and when the bindable has no existing value. |
Modifier and Type | Method and Description |
---|---|
Constructor<?> |
getBindConstructor(Bindable<?> bindable,
boolean isNestedConstructorBinding)
Return the bind constructor to use for the given bindable, or
null if
constructor binding is not supported. |
static final BindConstructorProvider DEFAULT
BindConstructorProvider
implementation that only returns a value
when there's a single constructor and when the bindable has no existing value.Constructor<?> getBindConstructor(Bindable<?> bindable, boolean isNestedConstructorBinding)
null
if
constructor binding is not supported.bindable
- the bindable to checkisNestedConstructorBinding
- if this binding is nested within a constructor
bindingnull
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.