ba04f3106cf205bc8cab025b211197a106719cdf
[mdsal.git] / trace / mdsal-trace-impl / src / main / resources / org / opendaylight / blueprint / impl-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2016 Red Hat and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11   xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
12   odl:use-default-for-reference-types="true">
13
14   <odl:clustered-app-config id="mdsalConfig"
15                             binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsaltrace.rev160908.Config">
16   </odl:clustered-app-config>
17
18   <reference id="codec"
19         interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer"
20         odl:type="default" />
21
22   <!-- Tracing Binding DataBroker -->
23
24   <reference id="realDefaultDOMBroker"
25       interface="org.opendaylight.mdsal.dom.api.DOMDataBroker"
26       odl:type="default" />
27
28   <bean id="tracingDefaultDOMBroker" class="org.opendaylight.mdsal.trace.impl.TracingBroker">
29       <argument value="default" />
30       <argument ref="realDefaultDOMBroker" />
31       <argument ref="mdsalConfig" />
32       <argument ref="codec" />
33   </bean>
34
35   <service id="tracingDefaultDOMBrokerSvc" ref="tracingDefaultDOMBroker" ranking="10" odl:type="default">
36     <interfaces>
37       <value>org.opendaylight.mdsal.dom.api.DOMDataBroker</value>
38       <value>org.opendaylight.mdsal.trace.api.TracingDOMDataBroker</value>
39     </interfaces>
40   </service>
41
42 </blueprint>