Move BP xml to OSGI-INF
[bgpcep.git] / programming / impl / src / main / resources / OSGI-INF / blueprint / programming.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4       Copyright (c) 2017 Pantheon Technologies s.r.o. 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
13     <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"
14                odl:type="default"/>
15     <reference id="rpcRegistry" interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
16     <reference id="notificationService"
17                interface="org.opendaylight.mdsal.binding.api.NotificationPublishService"/>
18     <reference id="timer" interface="io.netty.util.Timer" odl:type="global-timer"/>
19     <reference id="clusterSingletonServiceProvider"
20                interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
21
22     <bean id="IntructionFactory" class="org.opendaylight.bgpcep.programming.impl.InstructionSchedulerFactoryImpl">
23         <argument ref="dataBroker"/>
24         <argument ref="rpcRegistry"/>
25         <argument ref="notificationService"/>
26         <argument ref="timer"/>
27         <argument ref="clusterSingletonServiceProvider"/>
28         <argument ref="blueprintBundleContext"/>
29     </bean>
30
31     <service ref="IntructionFactory"
32              interface="org.opendaylight.bgpcep.programming.spi.InstructionSchedulerFactory"/>
33 </blueprint>