Class JsniInvoker

  • All Implemented Interfaces:
    Invoker

    public abstract class JsniInvoker
    extends Object
    implements Invoker
    Special Invoker that uses JSNI to invoke methods with limited visibility.
    Since:
    7.2
    Author:
    Vaadin Ltd
    • Constructor Detail

      • JsniInvoker

        public JsniInvoker()
    • Method Detail

      • jsniInvoke

        protected abstract Object jsniInvoke​(Object target,
                                             JsArrayObject<Object> params)
        Abstract method that will be generated to contain JSNI for invoking the actual method.
        Parameters:
        target - the object upon which to invoke the method
        params - a js array with arguments to pass to the method
        Returns:
        the value returned by the invoked method, or null if the target method return type is void.