com.vaadin.client.metadata
Class JsniInvoker

java.lang.Object
  extended by com.vaadin.client.metadata.JsniInvoker
All Implemented Interfaces:
Invoker

public abstract class JsniInvoker
extends java.lang.Object
implements Invoker

Special Invoker that uses JSNI to invoke methods with limited visibility.

Since:
7.2
Author:
Vaadin Ltd

Constructor Summary
JsniInvoker()
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object target, java.lang.Object... params)
           
protected abstract  java.lang.Object jsniInvoke(java.lang.Object target, JsArrayObject<java.lang.Object> params)
          Abstract method that will be generated to contain JSNI for invoking the actual method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsniInvoker

public JsniInvoker()
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.Object... params)
Specified by:
invoke in interface Invoker

jsniInvoke

protected abstract java.lang.Object jsniInvoke(java.lang.Object target,
                                               JsArrayObject<java.lang.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.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.