@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)
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)
null
if
constructor binding is not supported.bindable
- the bindable to checknull
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.