2 * Copyright (c) 2020 Lumina Networks, Inc. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.nb.rfc8040;
10 import java.util.List;
11 import javax.inject.Inject;
12 import javax.inject.Singleton;
13 import org.apache.aries.blueprint.annotation.service.Reference;
14 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
15 import org.opendaylight.restconf.nb.rfc8040.handlers.SchemaContextHandler;
16 import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RestconfDataStreamService;
19 * Restconf Application extends {@link AbstractRestconfApplication}. Is used for sending SSE.
22 public class DataStreamApplication extends AbstractRestconfApplication {
24 public DataStreamApplication(final SchemaContextHandler schemaContextHandler,
25 @Reference final DOMMountPointService mountPointService,
26 final RestconfDataStreamService dataStreamService) {
27 super(schemaContextHandler, mountPointService, List.of(dataStreamService));