Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-dom-spi / src / main / java / org / opendaylight / controller / sal / core / spi / data / DOMStore.java
index 138b726edb0dcfa6b0cdb4cdeab9ebf7c103be7d..3e8de5d1ea361a20f5554a805179096f1471ebbe 100644 (file)
@@ -7,12 +7,6 @@
  */
 package org.opendaylight.controller.sal.core.spi.data;
 
-import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope;
-import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener;
-import org.opendaylight.controller.md.sal.common.api.data.DataChangeListener;
-import org.opendaylight.controller.md.sal.common.api.data.TransactionChain;
-import org.opendaylight.yangtools.concepts.ListenerRegistration;
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 
 /**
@@ -22,49 +16,26 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
  * DOM Data Store provides transactional tree-like storage for YANG-modeled
  * entities described by YANG schema and represented by {@link NormalizedNode}.
  *
+ * <p>
  * Read and write access to stored data is provided only via transactions
  * created using {@link #newReadOnlyTransaction()},
  * {@link #newWriteOnlyTransaction()} and {@link #newReadWriteTransaction()}, or
- * by creating {@link TransactionChain}.
+ * by creating {@link org.opendaylight.controller.md.sal.common.api.data.TransactionChain}.
  *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.store.DOMStore} instead.
  */
+@Deprecated
 public interface DOMStore extends DOMStoreTransactionFactory {
-
-    /**
-     * Registers {@link DataChangeListener} for Data Change callbacks which will
-     * be triggered on the change of provided subpath. What constitutes a change
-     * depends on the @scope parameter.
-     *
-     * Listener upon registration receives an initial callback
-     * {@link AsyncDataChangeListener#onDataChanged(org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent)}
-     * which contains stable view of data tree at the time of registration.
-     *
-     *  @param path Path (subtree identifier) on which client listener will be
-     * invoked.
-     *
-     * @param listener
-     *            Instance of listener which should be invoked on
-     * @param scope
-     *            Scope of change which triggers callback.
-     * @return Listener Registration object, which client may use to close
-     *         registration / interest on receiving data changes.
-     *
-     */
-    <L extends AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>>> ListenerRegistration<L> registerChangeListener(
-            InstanceIdentifier path, L listener, DataChangeScope scope);
-
     /**
-     *
      * Creates new transaction chain.
      *
+     * <p>
      * Transactions in a chain need to be committed in sequence and each
      * transaction should see the effects of previous transactions as if they
      * happened.
      *
-     * See {@link DOMStoreTransactionChain} for more information.
-     *
+     * @see DOMStoreTransactionChain for more information.
      * @return Newly created transaction chain.
      */
     DOMStoreTransactionChain createTransactionChain();
-
 }