- @Override
- public List<String> getDependsOn() {
- return Collections.singletonList(OpendaylightNamespaceHandler.RPC_REGISTRY_NAME);
+ private void retrievedSchemaContext(SchemaContext schemaContext) {
+ LOG.debug("{}: retrievedSchemaContext", logName());
+
+ QNameModule moduleName = BindingReflections.getQNameModule(rpcInterface);
+ Module module = schemaContext.findModuleByNamespaceAndRevision(moduleName.getNamespace(), moduleName.getRevision());
+
+ LOG.debug("{}: Got Module: {}", logName(), module);
+
+ rpcSchemaPaths = new HashSet<>();
+ for(RpcDefinition rpcDef : module.getRpcs()) {
+ rpcSchemaPaths.add(rpcDef.getPath());
+ }
+
+ LOG.debug("{}: Got SchemaPaths: {}", logName(), rpcSchemaPaths);
+
+ // First get the DOMRpcService OSGi service. This will be used to register a listener to be notified
+ // when the underlying DOM RPC service is available.
+
+ retrieveService("DOMRpcService", DOMRpcService.class, service -> retrievedDOMRpcService((DOMRpcService)service));