BUG-8327: deprecate sal.core.api.model.SchemaService 65/56265/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2017 15:03:32 +0000 (17:03 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Sun, 30 Apr 2017 20:19:06 +0000 (20:19 +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>
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 c3e979c..de37cf8 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 4a4ae3b..3e55d79 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 {
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.