public class JavaScriptProxyFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected VaniContext |
vaniContext |
| Constructor and Description |
|---|
JavaScriptProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createProxy(JavaScriptSource<T> jsSource) |
protected List<Object> |
loadManualJSInterfaceImplementation(Class<?> jsInterface)
This method will collect all manual js-interface implementations for
provided js-interface.
|
@Autowired protected VaniContext vaniContext
public <T> T createProxy(JavaScriptSource<T> jsSource)
protected List<Object> loadManualJSInterfaceImplementation(Class<?> jsInterface)
It will check all super interfaces, which are annotated with
ManualJavaScriptInterface and instantiates its implementation.
jsInterface - jsInterface.Copyright © 2016. All rights reserved.