2 * Copyright (c) 2014 Cisco Systems, Inc. and others. 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.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.rests.services.impl.SubscribeToStreamUtil;
29 public class RestconfApplication extends AbstractRestconfApplication {
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 SubscribeToStreamUtil streamUtils) {
35 super(databindProvider, List.of(
36 // FIXME: NETCONF:1102: do not instantiate this service
37 new RestconfStreamsSubscriptionServiceImpl(dataBroker, notificationService, databindProvider, streamUtils),
38 new RestconfDataServiceImpl(databindProvider, server, actionService),
39 new RestconfInvokeOperationsServiceImpl(databindProvider, server, mountPointService, streamUtils),
40 new RestconfOperationsServiceImpl(databindProvider, server),
41 new RestconfSchemaServiceImpl(domSchemaService, mountPointService),
42 new RestconfImpl(databindProvider)));