diff options
Diffstat (limited to 'netconf/restconf/restconf-nb-bierman02/src/main/resources/OSGI-INF/blueprint/restconf-config.xml')
-rw-r--r-- | netconf/restconf/restconf-nb-bierman02/src/main/resources/OSGI-INF/blueprint/restconf-config.xml | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/netconf/restconf/restconf-nb-bierman02/src/main/resources/OSGI-INF/blueprint/restconf-config.xml b/netconf/restconf/restconf-nb-bierman02/src/main/resources/OSGI-INF/blueprint/restconf-config.xml new file mode 100644 index 0000000..ab235e7 --- /dev/null +++ b/netconf/restconf/restconf-nb-bierman02/src/main/resources/OSGI-INF/blueprint/restconf-config.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2017 Inocybe Technologies Inc. and others. All rights reserved. + + This program and the accompanying materials are made available under the + terms of the Eclipse Public License v1.0 which accompanies this distribution, + and is available at http://www.eclipse.org/legal/epl-v10.html +--> +<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" + xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"> + <!-- Restconf providers --> + <cm:property-placeholder persistent-id="org.opendaylight.restconf" update-strategy="reload"> + <cm:default-properties> + <cm:property name="websocket-address" value="0.0.0.0"/> + <cm:property name="websocket-port" value="8185"/> + </cm:default-properties> + </cm:property-placeholder> + + <bean id="webSocketPort" class="org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber" factory-method="getDefaultInstance"> + <argument value="${websocket-port}"/> + </bean> + + <bean id="webSocketAddress" class="org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress"> + <argument value="${websocket-address}"/> + </bean> + + <bean id="restconfProviderDraft02" class="org.opendaylight.netconf.sal.restconf.impl.RestconfProviderImpl" + init-method="start" destroy-method="close"> + <argument ref="statisticsRestconfServiceWrapper"/> + <argument ref="webSocketAddress"/> + <argument ref="webSocketPort"/> + </bean> + + <bean id="brokerFacade" class="org.opendaylight.netconf.sal.restconf.impl.BrokerFacade" destroy-method="close"> + <argument ref="dOMRpcService"/> + <argument ref="dOMDataBroker"/> + <argument ref="dOMNotificationService"/> + <argument ref="controllerContext"/> + </bean> + <bean id="controllerContext" class="org.opendaylight.netconf.sal.restconf.impl.ControllerContext" destroy-method="close"> + <argument ref="dOMSchemaService"/> + <argument ref="dOMMountPointService"/> + <argument ref="dOMSchemaService"/> + </bean> + <bean id="jSONRestconfServiceImpl" class="org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl"> + <argument ref="controllerContext"/> + <argument ref="restconfImpl"/> + </bean> + <bean id="restconfApplication" class="org.opendaylight.netconf.sal.rest.impl.RestconfApplication"> + <argument ref="controllerContext"/> + <argument ref="statisticsRestconfServiceWrapper"/> + </bean> + <bean id="restconfImpl" class="org.opendaylight.netconf.sal.restconf.impl.RestconfImpl"> + <argument ref="brokerFacade"/> + <argument ref="controllerContext"/> + </bean> + <bean id="statisticsRestconfServiceWrapper" class="org.opendaylight.netconf.sal.restconf.impl.StatisticsRestconfServiceWrapper"> + <argument ref="restconfImpl"/> + </bean> + <bean id="webInitializer" class="org.opendaylight.netconf.sal.restconf.web.WebInitializer" destroy-method="close"> + <argument ref="webServer"/> + <argument ref="webContextSecurer"/> + <argument ref="servletSupport"/> + <argument ref="restconfApplication"/> + <argument ref="customFilterAdapterConfiguration"/> + </bean> + + <reference id="customFilterAdapterConfiguration" interface="org.opendaylight.aaa.filterchain.configuration.CustomFilterAdapterConfiguration"/> + <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/> + <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/> + <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport"/> + <reference id="dOMDataBroker" interface="org.opendaylight.mdsal.dom.api.DOMDataBroker"/> + <reference id="dOMMountPointService" interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/> + <reference id="dOMNotificationService" interface="org.opendaylight.mdsal.dom.api.DOMNotificationService"/> + <reference id="dOMRpcService" interface="org.opendaylight.mdsal.dom.api.DOMRpcService"/> + <reference id="dOMSchemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/> + <service ref="jSONRestconfServiceImpl" interface="org.opendaylight.netconf.sal.restconf.api.JSONRestconfService"/> +</blueprint> |