Adjust to EffectiveSchemaContext movement
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / base / services / impl / RestconfOperationsServiceImpl.java
index 74df8b5422c3988ca3d0673f5ccd040973cc3b2c..62fc11e92bb0be7c5ad86d151be35057d0b79294 100644 (file)
@@ -35,12 +35,12 @@ import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveSchemaContext;
+import org.opendaylight.yangtools.yang.parser.stmt.reactor.EffectiveSchemaContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Implementation of {@link RestconfOperationsService}
+ * Implementation of {@link RestconfOperationsService}.
  *
  */
 public class RestconfOperationsServiceImpl implements RestconfOperationsService {
@@ -51,12 +51,12 @@ public class RestconfOperationsServiceImpl implements RestconfOperationsService
     private final DOMMountPointServiceHandler domMountPointServiceHandler;
 
     /**
-     * Set {@link SchemaContextHandler} for getting actual {@link SchemaContext}
+     * Set {@link SchemaContextHandler} for getting actual {@link SchemaContext}.
      *
      * @param schemaContextHandler
-     *            - handling schema context
+     *             handling schema context
      * @param domMountPointServiceHandler
-     *            - handling dom mount point service
+     *             handling dom mount point service
      */
     public RestconfOperationsServiceImpl(final SchemaContextHandler schemaContextHandler,
             final DOMMountPointServiceHandler domMountPointServiceHandler) {
@@ -98,9 +98,9 @@ public class RestconfOperationsServiceImpl implements RestconfOperationsService
      * of schema nodes and module.
      *
      * @param modules
-     *            - set of modules for get RPCs from every module
+     *             set of modules for get RPCs from every module
      * @param mountPoint
-     *            - mount point, if in use otherwise null
+     *             mount point, if in use otherwise null
      * @return {@link NormalizedNodeContext}
      */
     private static NormalizedNodeContext getOperations(final Set<Module> modules, final DOMMountPoint mountPoint) {
@@ -129,6 +129,7 @@ public class RestconfOperationsServiceImpl implements RestconfOperationsService
         neededModules.forEach(imp -> fakeModules.add(new FakeImportedModule(imp)));
         fakeModules.add(new FakeRestconfModule(neededModules, fakeCont));
 
+        // FIXME: use a separate sublcass of AbstractSchemaContext
         final SchemaContext fakeSchemaCtx =
                 EffectiveSchemaContext.resolveSchemaContext(ImmutableSet.copyOf(fakeModules));
         final InstanceIdentifierContext<ContainerSchemaNode> instanceIdentifierContext =