Deprecated the high-level interfaces, eg DataBroker.
Change-Id: I754e3a5059c05d70616f3bd4ff3a00a05115fead
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-common-api</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>mdsal-binding-api</artifactId>
+ </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>concepts</artifactId>
*
* @see AsyncDataBroker
* @see TransactionChainFactory
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.DataBroker} instead
*/
+@Deprecated
public interface DataBroker extends AsyncDataBroker<InstanceIdentifier<?>, DataObject>,
TransactionChainFactory<InstanceIdentifier<?>, DataObject>, TransactionFactory, BindingService,
DataTreeChangeService {
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+/**
+ * Deprecated.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.MountPointService} instead
+ */
+@Deprecated
public interface MountPointService extends BindingService {
Optional<MountPoint> getMountPoint(InstanceIdentifier<?> mountPoint);
* The actual delivery to listeners is asynchronous and implementation-specific.
* Users of this interface should not make any assumptions as to whether the
* notification has or has not been seen.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.NotificationPublishService} instead
*/
+@Deprecated
public interface NotificationPublishService extends BindingService {
/**
* }
* The <code>onStart</code> method will be invoked when someone publishes a <code>Start</code> notification and
* the <code>onStop</code> method will be invoked when someone publishes a <code>Stop</code> notification.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.NotificationService} instead
*/
+@Deprecated
public interface NotificationService extends BindingService {
/**
* Registers a listener which implements a YANG-generated notification interface derived from
* and {@link ProviderContext}
*/
public interface BindingAwareBroker {
- /*
- * @deprecated Use registerConsumer(BindingAwareConsumer cons) instead (BundleContext is no longer used)
- */
@Deprecated
ConsumerContext registerConsumer(BindingAwareConsumer consumer, BundleContext ctx);
* @throws IllegalStateException
* If the consumer is already registered.
*/
+ @Deprecated
ConsumerContext registerConsumer(BindingAwareConsumer consumer);
/*
* @throws IllegalStateException
* If the consumer is already registered.
*/
+ @Deprecated
ProviderContext registerProvider(BindingAwareProvider provider);
/**
* infrastructure services and other functionality provided by
* {@link BindingAwareProvider}s.
*/
+ @Deprecated
interface ConsumerContext extends RpcConsumerRegistry {
/**
* functionality provided by other {@link BindingAwareConsumer}s.
*
*/
+ @Deprecated
interface ProviderContext extends ConsumerContext, RpcProviderRegistry {
}
* }
* }
*/
+@Deprecated
public interface BindingAwareConsumer {
/**
* }
* }
*/
+@Deprecated
public interface BindingAwareProvider {
/**
* modeled notifications. This interface is a combination of the {@link NotificationService} and
* {@link NotificationPublishService} interfaces.
*
- * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.NotificationPublishService}.
+ * @deprecated Please use {@link org.opendaylight.mdsal.binding.api.NotificationPublishService}.
*/
@Deprecated
public interface NotificationProviderService extends NotificationService, NotificationPublishService<Notification> {
* The <code>onStart</code> method will be invoked when someone publishes a <code>Start</code> notification and
* the <code>onStop</code> method will be invoked when someone publishes a <code>Stop</code> notification.
*
- * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.NotificationService} instead.
+ * @deprecated Please use {@link org.opendaylight.mdsal.binding.api.NotificationService} instead.
*/
@Deprecated
public interface NotificationService extends BindingAwareService {
* <p>
* RPC implementations are registered using the {@link RpcProviderRegistry}.
*
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.RpcConsumerRegistry} instead
*/
+@Deprecated
public interface RpcConsumerRegistry extends BindingAwareService, BindingService {
/**
* Returns an implementation of a requested RPC service.
* on failure rather than purposely throwing unchecked exceptions if at all possible.
* While unchecked exceptions will fail the returned {@link java.util.concurrent.Future Future},
* using the intended RpcResult to convey the error information is more user-friendly.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.RpcProviderService} instead
*/
+@Deprecated
public interface RpcProviderRegistry extends //
RpcConsumerRegistry, //
RouteChangePublisher<RpcContextIdentifier, InstanceIdentifier<?>> {
* <p>
* This interface is type capture of generic interfaces and returns type captures
* of results for client-code convenience.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMDataBroker} instead
*/
+@Deprecated
public interface DOMDataBroker extends
AsyncDataBroker<YangInstanceIdentifier, NormalizedNode<?, ?>>,
TransactionChainFactory<YangInstanceIdentifier, NormalizedNode<?, ?>>,
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+/**
+ * Deprecated.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMMountPointService} instead
+ */
+@Deprecated
public interface DOMMountPointService extends DOMService {
Optional<DOMMountPoint> getMountPoint(YangInstanceIdentifier path);
* - an offer-style method, which attempts to enqueue the notification, but allows
* the caller to specify that it should never wait, or put an upper bound on how
* long it is going to wait.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMNotificationPublishService} instead
*/
+@Deprecated
public interface DOMNotificationPublishService extends DOMService {
/**
* Well-known value indicating that the implementation is currently not
/**
* A {@link DOMService} which allows its users to subscribe to receive
* {@link DOMNotification}s.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMNotificationService} instead
*/
+@Deprecated
public interface DOMNotificationService extends DOMService {
/**
* Register a {@link DOMNotificationListener} to receive a set of notifications. As with
*
* <p>
* All implementations are required to perform these steps as specified above.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcProviderService} instead
*/
+@Deprecated
public interface DOMRpcProviderService extends DOMService {
/**
* Register an {@link DOMRpcImplementation} object with this service.
* service is that of a dynamic router, where the set of available RPC services can change
* dynamically. The service allows users to add a listener to track the process of
* RPCs becoming available.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcService} instead
*/
+@Deprecated
public interface DOMRpcService extends DOMService {
/**
* Initiate invocation of an RPC. This method is guaranteed to not block on any external