Eliminate rfc8040.streams.listeners package
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / RestconfApplication.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  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.DOMActionService;
14 import org.opendaylight.mdsal.dom.api.DOMDataBroker;
15 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
16 import org.opendaylight.mdsal.dom.api.DOMNotificationService;
17 import org.opendaylight.mdsal.dom.api.DOMSchemaService;
18 import org.opendaylight.restconf.nb.rfc8040.databind.DatabindProvider;
19 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.MdsalRestconfServer;
20 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfDataServiceImpl;
21 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfImpl;
22 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfInvokeOperationsServiceImpl;
23 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfOperationsServiceImpl;
24 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfSchemaServiceImpl;
25 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RestconfStreamsSubscriptionServiceImpl;
26 import org.opendaylight.restconf.nb.rfc8040.streams.ListenersBroker;
27
28 @Singleton
29 public class RestconfApplication extends AbstractRestconfApplication {
30     @Inject
31     public RestconfApplication(final DatabindProvider databindProvider, final MdsalRestconfServer server,
32             final DOMMountPointService mountPointService, final DOMDataBroker dataBroker,
33             final DOMActionService actionService, final DOMNotificationService notificationService,
34             final DOMSchemaService domSchemaService, final ListenersBroker listenersBroker) {
35         super(databindProvider, List.of(
36             // FIXME: NETCONF:1102: do not instantiate this service
37             new RestconfStreamsSubscriptionServiceImpl(dataBroker, notificationService, databindProvider,
38                 listenersBroker),
39             new RestconfDataServiceImpl(databindProvider, server, actionService),
40             new RestconfInvokeOperationsServiceImpl(databindProvider, server, mountPointService, listenersBroker),
41             new RestconfOperationsServiceImpl(databindProvider, server),
42             new RestconfSchemaServiceImpl(domSchemaService, mountPointService),
43             new RestconfImpl(databindProvider)));
44     }
45 }