import org.opendaylight.restconf.nb.rfc8040.databind.XmlOperationInputBody;
import org.opendaylight.restconf.nb.rfc8040.legacy.InstanceIdentifierContext;
import org.opendaylight.restconf.nb.rfc8040.legacy.NormalizedNodePayload;
+import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenersBroker;
import org.opendaylight.yang.gen.v1.urn.opendaylight.device.notification.rev221106.SubscribeDeviceNotification;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.remote.rev140114.CreateDataChangeEventSubscription;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.remote.rev140114.CreateNotificationStream;
private final MdsalRestconfServer server;
@Deprecated(forRemoval = true)
private final DOMMountPointService mountPointService;
- private final SubscribeToStreamUtil streamUtils;
+ private final ListenersBroker listenersBroker;
public RestconfInvokeOperationsServiceImpl(final DatabindProvider databindProvider,
final MdsalRestconfServer server, final DOMMountPointService mountPointService,
- final SubscribeToStreamUtil streamUtils) {
+ final ListenersBroker listenersBroker) {
this.databindProvider = requireNonNull(databindProvider);
this.server = requireNonNull(server);
this.mountPointService = requireNonNull(mountPointService);
- this.streamUtils = requireNonNull(streamUtils);
+ this.listenersBroker = requireNonNull(listenersBroker);
}
/**
if (mountPoint == null) {
// Hacked-up integration of streams
if (CreateDataChangeEventSubscription.QNAME.equals(type)) {
- return CreateStreamUtil.createDataChangeNotifiStream(streamUtils.listenersBroker(), input,
+ return CreateStreamUtil.createDataChangeNotifiStream(listenersBroker, input,
localDatabind.modelContext());
} else if (CreateNotificationStream.QNAME.equals(type)) {
- return CreateStreamUtil.createNotificationStream(streamUtils.listenersBroker(), input,
+ return CreateStreamUtil.createNotificationStream(listenersBroker, input,
localDatabind.modelContext());
} else if (SubscribeDeviceNotification.QNAME.equals(type)) {
- return CreateStreamUtil.createDeviceNotificationListener(streamUtils.listenersBroker(), input,
- streamUtils.prepareUriByStreamName(uriInfo, "").toString(), mountPointService);
+ return CreateStreamUtil.createDeviceNotificationListener(listenersBroker, input,
+ listenersBroker.prepareUriByStreamName(uriInfo, "").toString(), mountPointService);
}
}