Move restconf.common.util
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / DataStreamApplication.java
1 /*
2  * Copyright (c) 2020 Lumina Networks, Inc. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.restconf.nb.rfc8040;
9
10 import java.util.List;
11 import javax.inject.Inject;
12 import javax.inject.Singleton;
13 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
14 import org.opendaylight.restconf.nb.rfc8040.handlers.SchemaContextHandler;
15 import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RestconfDataStreamService;
16
17 /**
18  * Restconf Application extends {@link AbstractRestconfApplication}. Is used for sending SSE.
19  */
20 @Singleton
21 public class DataStreamApplication extends AbstractRestconfApplication {
22     @Inject
23     public DataStreamApplication(final SchemaContextHandler schemaContextHandler,
24             final DOMMountPointService mountPointService, final RestconfDataStreamService dataStreamService) {
25         super(schemaContextHandler, mountPointService, List.of(dataStreamService));
26     }
27 }