BUG-8327: deprecate sal.core.api.model.SchemaService 05/56305/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2017 15:03:32 +0000 (17:03 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 1 May 2017 06:44:23 +0000 (06:44 +0000)
This interface is deprecated in favor of the DOMSchemaService
for the MD-SAL project.

Change-Id: Icff2cced791bc9fbf5bfadbe2f1cf2b949ff2d58
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 84f6c81afe8c53307dc9be8c39824ca4e4191819)

opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java
opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java

index c3e979c536b268c4a6156b7241e745f328569618..de37cf8b77c3a6e6881464e1d6aed679eac5165a 100644 (file)
@@ -13,32 +13,29 @@ import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
 
+/**
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMSchemaService} instead.
+ */
+@Deprecated
 public interface SchemaService extends BrokerService {
 
     /**
      * Registers a YANG module to session and global context
-     *
-     * @param module
      */
     void addModule(Module module);
 
     /**
      * Unregisters a YANG module from session context
-     *
-     * @param module
      */
     void removeModule(Module module);
 
     /**
      * Returns session specific YANG schema context
-     * @return
      */
     SchemaContext getSessionContext();
 
     /**
      * Returns global schema context
-     *
-     * @return
      */
     SchemaContext getGlobalContext();
 
index 4a4ae3b82acf9fbe5fbcf21b207f8e2ba6435c62..3e55d796c1a0be867fa05f522a78373fe956a614 100644 (file)
@@ -28,6 +28,7 @@ import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
 
+@Deprecated
 public final class GlobalBundleScanningSchemaServiceImpl implements SchemaContextProvider, SchemaService,
         YangTextSourceProvider, AutoCloseable {