1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2017 Pantheon technologies s.r.o. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10 xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
12 xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.4.0"
13 odl:use-default-for-reference-types="true">
15 <!-- Restconf providers -->
17 This cfg file defines the type of the DOMDataBroker service to use. 'default' indicates to use
18 the default DOMDataBroker provided by MD-SAL. This setting is useful for providing a custom
19 DOMDataBroker implementation that does, e.g., validation or additional security checking on
20 top of the default DOMDataBroker.
22 <cm:property-placeholder persistent-id="org.opendaylight.restconf.databroker"
23 placeholder-prefix = "@{" placeholder-suffix = "}" update-strategy="reload">
24 <cm:default-properties>
25 <cm:property name="databroker-service-type" value="default"/>
26 </cm:default-properties>
27 </cm:property-placeholder>
29 <!-- We need the AAAService available even though we don't use it -->
30 <reference interface="org.opendaylight.aaa.api.AAAService"/>
32 <reference id="schemaService" interface="org.opendaylight.controller.sal.core.api.model.SchemaService"/>
33 <reference id="domRpcService" interface="org.opendaylight.controller.md.sal.dom.api.DOMRpcService"/>
34 <reference id="domMountPointService" interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"/>
35 <reference id="domNotificationService" interface="org.opendaylight.controller.md.sal.dom.api.DOMNotificationService"/>
36 <reference id="domDataBroker" interface="org.opendaylight.controller.md.sal.dom.api.DOMDataBroker"
37 ext:filter="(type=@{databroker-service-type})"/>
39 <bean id="restconfProvider" class="org.opendaylight.restconf.nb.rfc8040.RestConnectorProvider"
40 init-method="start" destroy-method="close">
41 <argument ref="domDataBroker"/>
42 <argument ref="schemaService"/>
43 <argument ref="domRpcService"/>
44 <argument ref="domNotificationService"/>
45 <argument ref="domMountPointService"/>
48 <service ref="restconfProvider"
49 interface="org.opendaylight.restconf.nb.rfc8040.RestconfConnector" />
51 <!-- JSONRestconfService -->
52 <bean id="jsonRestconfService" depends-on="restconfProvider"
53 class="org.opendaylight.restconf.nb.rfc8040.rests.services.impl.JSONRestconfServiceRfc8040Impl"
54 destroy-method="close">
56 <bean class="org.opendaylight.restconf.nb.rfc8040.services.wrapper.ServicesWrapperImpl"
57 factory-method="getInstance" />
60 <bean factory-ref="restconfProvider" factory-method="getMountPointServiceHandler" />
64 <service ref="jsonRestconfService" odl:type="rfc8040"
65 interface="org.opendaylight.restconf.nb.rfc8040.rests.services.api.JSONRestconfService" />