| java.lang.Object org.mozilla.javascript.InterfaceAdapter
InterfaceAdapter | public class InterfaceAdapter (Code) | | Adapter to use JS function as implementation of Java interfaces with
single method or multiple methods with the same signature.
|
Method Summary | |
static Object | create(Context cx, Class cl, Callable function) Make glue object implementing interface cl that will
call the supplied JS function when called. | public Object | invoke(ContextFactory cf, Object target, Scriptable topScope, Method method, Object[] args) | Object | invokeImpl(Context cx, Object target, Scriptable topScope, Method method, Object[] args) |
create | static Object create(Context cx, Class cl, Callable function)(Code) | | Make glue object implementing interface cl that will
call the supplied JS function when called.
Only interfaces were all methods have the same signature is supported.
The glue object or null if cl is not interface orhas methods with different signatures. |
|
|