org.mozilla.javascript

Class InterfaceAdapter

public class InterfaceAdapter extends Object

Adapter to use JS function as implementation of Java interfaces with single method or multiple methods with the same signature.
Method Summary
Objectinvoke(ContextFactory cf, Object target, Scriptable topScope, Method method, Object[] args)

Method Detail

invoke

public Object invoke(ContextFactory cf, Object target, Scriptable topScope, Method method, Object[] args)