Update to MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / data / DataProviderService.java
index 1057c3039ea967045704a3770c38c61ecdd5fd8c..32b1d933cf4735ad8aa72ddea15c15e93bd6afff 100644 (file)
@@ -7,73 +7,13 @@
  */
 package org.opendaylight.controller.sal.binding.api.data;
 
-import java.util.Map;
-import java.util.Set;
 
+import org.opendaylight.controller.md.sal.common.api.data.DataProvisionService;
 import org.opendaylight.controller.sal.common.DataStoreIdentifier;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
-public interface DataProviderService extends DataBrokerService {
 
-    /**
-     * Adds {@link DataValidator} for specified Data Store
-     * 
-     * @param store
-     *            Data Store
-     * @param validator
-     *            Validator
-     */
-    @Deprecated
-    public void addValidator(DataStoreIdentifier store, DataValidator validator);
-
-    /**
-     * Removes {@link DataValidator} from specified Data Store
-     * 
-     * @param store
-     * @param validator
-     *            Validator
-     */
-    
-    @Deprecated
-    public void removeValidator(DataStoreIdentifier store, DataValidator validator);
-
-    /**
-     * Adds {@link DataCommitHandler} for specified data store
-     * 
-     * @param store
-     * @param provider
-     */
-    @Deprecated
-    void addCommitHandler(DataStoreIdentifier store, DataCommitHandler provider);
-
-    /**
-     * Removes {@link DataCommitHandler} from specified data store
-     * 
-     * @param store
-     * @param provider
-     */
-    @Deprecated
-    void removeCommitHandler(DataStoreIdentifier store, DataCommitHandler provider);
-
-    /**
-     * Adds {@link DataRefresher} for specified data store
-     * 
-     * @param store
-     * @param refresher
-     */
-    void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
-
-    /**
-     * Removes {@link DataRefresher} from specified data store
-     * 
-     * @param store
-     * @param refresher
-     */
-    void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
-
-    public void registerCommitHandler(InstanceIdentifier path, DataCommitHandler commitHandler);
-    
-    public void registerValidator(InstanceIdentifier path, DataValidator validator);
+public interface DataProviderService extends DataBrokerService, DataProvisionService<InstanceIdentifier<? extends DataObject>, DataObject> {
 
 }