Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /** Creates a new JSONRequestHandler. */
 public JSONRequestHandler() {
   _sharedBridge = JSONBridge.createBridge();
 }