From: Robert Varga Date: Fri, 28 Apr 2017 15:03:32 +0000 (+0200) Subject: BUG-8327: deprecate sal.core.api.model.SchemaService X-Git-Tag: release/carbon~44 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=a0c03dc8daedc57415c80b3503bb9c81d0f7bf6b BUG-8327: deprecate sal.core.api.model.SchemaService This interface is deprecated in favor of the DOMSchemaService for the MD-SAL project. Change-Id: Icff2cced791bc9fbf5bfadbe2f1cf2b949ff2d58 Signed-off-by: Robert Varga (cherry picked from commit 84f6c81afe8c53307dc9be8c39824ca4e4191819) --- diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java index c3e979c536..de37cf8b77 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java @@ -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(); diff --git a/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java b/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java index 4a4ae3b82a..3e55d796c1 100644 --- a/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java +++ b/opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java @@ -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 {