Class BindingsCoercer

  • All Implemented Interfaces:
    manifold.ext.rt.api.ICoercionProvider

    public class BindingsCoercer
    extends Object
    implements manifold.ext.rt.api.ICoercionProvider
    Coerce 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 Detail

      • BindingsCoercer

        public BindingsCoercer()
    • Method Detail

      • coerce

        public Object coerce​(Object o,
                             Type ifaceToProxyType)
        Specified by:
        coerce in interface manifold.ext.rt.api.ICoercionProvider
      • toBindingValue

        public Object toBindingValue​(Object value)
        Specified by:
        toBindingValue in interface manifold.ext.rt.api.ICoercionProvider