Move BP xml to OSGI-INF
[bgpcep.git] / bgp / openconfig-spi / src / main / resources / OSGI-INF / blueprint / bgp-openconfig-spi.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
4
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
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
11
12   <odl:specific-reference-list id="extensionActivators" interface="org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProviderActivator"/>
13
14   <bean id="extensionProviderContext" class="org.opendaylight.protocol.bgp.openconfig.spi.SimpleBGPTableTypeRegistryProvider"/>
15
16   <bean id="extensionProviderContextActivator" class="org.opendaylight.protocol.bgp.openconfig.spi.SimpleBGPTableTypeRegistryProviderActivator"
17       init-method="start" destroy-method="close">
18     <argument ref="extensionProviderContext"/>
19     <argument ref="extensionActivators"/>
20   </bean>
21
22   <service ref="extensionProviderContext">
23     <interfaces>
24       <value>org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryConsumer</value>
25       <value>org.opendaylight.protocol.bgp.openconfig.spi.BGPTableTypeRegistryProvider</value>
26     </interfaces>
27   </service>
28 </blueprint>