protected JSONRPCBridge createBridgeForComponent( JSONComponent component, String componentName, String componentInstance, Map<String, JSONRPCBridge> componentBridges) throws Exception { JSONRPCBridge jsonBridge = JSONBridge.createBridge(); jsonBridge.registerCallableReference(JSONComponent.class); jsonBridge.registerObject("component", component); String componentNameAndInstance = JSONRequestHandler.componentNameAndInstance(componentName, componentInstance); componentBridges.put(componentNameAndInstance, jsonBridge); return jsonBridge; }
/** Creates a new JSONRequestHandler. */ public JSONRequestHandler() { _sharedBridge = JSONBridge.createBridge(); }