BGPCEP-710: Create Network Topology Loader
[bgpcep.git] / config-loader / config-loader-impl / src / main / resources / org / opendaylight / blueprint / config-loader-impl.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
4     <odl:static-reference id="domSchemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
5     <odl:static-reference id="mappingCodec"
6                           interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer"/>
7
8     <bean id="filewatcher" class="org.opendaylight.bgpcep.config.loader.impl.FileWatcherImpl"
9           destroy-method="close"/>
10
11     <bean id="configLoader" class="org.opendaylight.bgpcep.config.loader.impl.ConfigLoaderImpl"
12           init-method="init"
13           destroy-method="close">
14         <argument>
15             <bean factory-ref="domSchemaService" factory-method="getGlobalContext"/>
16         </argument>
17         <argument ref="mappingCodec"/>
18         <argument ref="filewatcher"/>
19     </bean>
20
21     <service ref="configLoader" interface="org.opendaylight.bgpcep.config.loader.spi.ConfigLoader"/>
22 </blueprint>