org.mozilla.javascript

Class InterfaceAdapter


public class InterfaceAdapter
extends java.lang.Object

Adapter to use JS function as implementation of Java interfaces with single method or multiple methods with the same signature.

Method Summary

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

Method Details

invoke

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