public class BindingsCoercer extends Object implements ICoercionProvider
Bindings
and List
to IBindingsBacked
and IListBacked
.
Note, this coercer primarily serves the JSON and GraphQL APIs where structural interfaces overlay bindings. This
coercer is used to produce direct instances of the interfaces so that other JVM languages can use JSON and GraphQL
type manifolds without having to support structural typing.Constructor and Description |
---|
BindingsCoercer() |
Modifier and Type | Method and Description |
---|---|
Object |
coerce(Object o,
Type ifaceToProxyType) |
Object |
toBindingValue(Object value) |
public Object coerce(Object o, Type ifaceToProxyType)
coerce
in interface ICoercionProvider
public Object toBindingValue(Object value)
toBindingValue
in interface ICoercionProvider
Copyright © 2024. All rights reserved.