c53c19d7af7a6f55d2079ba7b326bf048df1c75b
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / cli / src / main / resources / org / opendaylight / blueprint / cli-blueprint.xml
1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
4 <?xml version="1.0" encoding="UTF-8"?>
5 <!-- vi: set et smarttab sw=4 tabstop=4: -->
6 <!--
7 Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
8
9 This program and the accompanying materials are made available under the
10 terms of the Eclipse Public License v1.0 which accompanies this distribution,
11 and is available at http://www.eclipse.org/legal/epl-v10.html
12 -->
13 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
14   xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
15   odl:use-default-for-reference-types="true">
16
17   <reference id="dataBroker"
18     interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
19     odl:type="default" />
20
21   <bean id="cliCommandsImpl" class="${package}.cli.impl.${classPrefix}CliCommandsImpl">
22     <argument ref="dataBroker" />
23   </bean>
24
25   <service ref="cliCommandsImpl" odl:type="default"
26     interface="${package}.cli.api.${classPrefix}CliCommands" />
27
28   <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
29     <command>
30         <action class="${package}.cli.commands.${classPrefix}CliTestCommand">
31             <argument ref="cliCommandsImpl"/>
32         </action>
33     </command>
34   </command-bundle>
35 </blueprint>