X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2Fdata%2FDataBrokerService.java;h=d30ca6beaf6fc209f600fbe09175895d4b9bdd62;hp=d0225768b4e2500acf0eccfb13e4999e0a8591e3;hb=c46e223995956f1f759c551163c212947c1e2fb7;hpb=48814d6a264b8f13e5db1422336d9ef25cb05fa9 diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java index d0225768b4..d30ca6beaf 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataBrokerService.java @@ -21,7 +21,9 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; * * * @see DataProviderService + * @deprecated Replaced by newer better documented version {@link org.opendaylight.controller.md.sal.binding.api.DataBroker} */ +@Deprecated public interface DataBrokerService extends // BindingAwareService, // DataModificationTransactionFactory, DataObject>, // @@ -31,16 +33,26 @@ public interface DataBrokerService extends // * Creates a data modification transaction. * * @return new blank data modification transaction. + * @deprecated Replaced by more specific transaction types. Please use + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadOnlyTransaction(), + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadWriteTransaction() + * or + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newWriteOnlyTransaction(). */ + @Deprecated @Override DataModificationTransaction beginTransaction(); /** * Reads data subtree from configurational store. * (Store which is populated by consumer, which is usually used to - * inject state into providers. E.g. Flow configuration)- + * inject state into providers. E.g. Flow configuration) + * + * + * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadOnlyTransaction()} * */ + @Deprecated @Override public DataObject readConfigurationData(InstanceIdentifier path); @@ -49,7 +61,9 @@ public interface DataBrokerService extends // * (Store which is populated by providers, which is usually used to * capture state of providers. E.g. Topology) * + * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadOnlyTransaction()} */ + @Deprecated @Override public DataObject readOperationalData(InstanceIdentifier path); @@ -58,7 +72,10 @@ public interface DataBrokerService extends // * * Callback is invoked each time data in subtree changes. * + * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#registerDataChangeListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType, InstanceIdentifier, org.opendaylight.controller.md.sal.binding.api.DataChangeListener, org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope)} + * which provides more fine-grained registration options. */ + @Deprecated @Override public ListenerRegistration registerDataChangeListener( InstanceIdentifier path, DataChangeListener listener);