/** * Gather all JSON-RPC methods from the local and remote services. */ protected Map<String, JsonRpcMethod> getSupportedMethods() { Map<String, JsonRpcMethod> supportedMethods = new LinkedHashMap<>(); // Gather the supported methods of remote interfaces for (Class<?> interface_ : remoteInterfaces) { supportedMethods.putAll(ServiceEndpoints.getSupportedMethods(interface_)); } // Gather the supported methods of local services for (Object localService : localServices) { if (localService instanceof JsonRpcMethodProvider) { JsonRpcMethodProvider rpcMethodProvider = (JsonRpcMethodProvider) localService; supportedMethods.putAll(rpcMethodProvider.supportedMethods()); } else { supportedMethods.putAll(ServiceEndpoints.getSupportedMethods(localService.getClass())); } } return supportedMethods; }
/** * Gather all JSON-RPC methods from the local and remote services. */ protected Map<String, JsonRpcMethod> getSupportedMethods() { Map<String, JsonRpcMethod> supportedMethods = new LinkedHashMap<>(); // Gather the supported methods of remote interfaces for (Class<?> interface_ : remoteInterfaces) { supportedMethods.putAll(ServiceEndpoints.getSupportedMethods(interface_)); } // Gather the supported methods of local services for (Object localService : localServices) { if (localService instanceof JsonRpcMethodProvider) { JsonRpcMethodProvider rpcMethodProvider = (JsonRpcMethodProvider) localService; supportedMethods.putAll(rpcMethodProvider.supportedMethods()); } else { supportedMethods.putAll(ServiceEndpoints.getSupportedMethods(localService.getClass())); } } return supportedMethods; }
Map<String, JsonRpcMethod> _xifexpression = null; if ((ext instanceof JsonRpcMethodProvider)) { _xifexpression = ((JsonRpcMethodProvider)ext).supportedMethods(); } else { _xifexpression = ServiceEndpoints.getSupportedMethods(ext.getClass());