public static interface ProxyJavaScriptExecutor.JavaJSExecutor
ProxyJavaScriptExecutor as a CatalystInstance executor, native code will
delegate js calls to the given implementation of this interface.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this executor and cleanup any resources that it was using.
|
void |
executeApplicationScript(java.lang.String script,
java.lang.String sourceURL)
Load javascript into the js context
|
java.lang.String |
executeJSCall(java.lang.String modulename,
java.lang.String methodName,
java.lang.String jsonArgsArray)
Execute javascript method within js context
|
void |
setGlobalVariable(java.lang.String propertyName,
java.lang.String jsonEncodedValue) |
void close()
void executeApplicationScript(java.lang.String script,
java.lang.String sourceURL)
throws ProxyJavaScriptExecutor.ProxyExecutorException
script - script contet to be executedsourceURL - url or file location from which script content was loadedProxyJavaScriptExecutor.ProxyExecutorExceptionjava.lang.String executeJSCall(java.lang.String modulename,
java.lang.String methodName,
java.lang.String jsonArgsArray)
throws ProxyJavaScriptExecutor.ProxyExecutorException
modulename - name of the common-js like module to execute the method frommethodName - name of the method to be executedjsonArgsArray - json encoded array of arguments provided for the method callProxyJavaScriptExecutor.ProxyExecutorExceptionvoid setGlobalVariable(java.lang.String propertyName,
java.lang.String jsonEncodedValue)