Fix issues with the maven startup-archetype
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / cli / src / main / java / __packageInPathFormat__ / cli / impl / __classPrefix__CliCommandsImpl.java
1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
4 /*
5  * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
9  * and is available at http://www.eclipse.org/legal/epl-v10.html
10  */
11 package ${package}.cli.impl;
12
13 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
14 import ${package}.cli.api.${classPrefix}CliCommands;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
17
18 public class ${classPrefix}CliCommandsImpl implements ${classPrefix}CliCommands {
19
20     private static final Logger LOG = LoggerFactory.getLogger(${classPrefix}CliCommandsImpl.class);
21     private final DataBroker dataBroker;
22
23     public ${classPrefix}CliCommandsImpl(final DataBroker db) {
24         this.dataBroker = db;
25         LOG.info("${classPrefix}CliCommandImpl initialized");
26     }
27
28     @Override
29     public Object testCommand(Object testArgument) {
30         return "This is a test implementation of test-command";
31     }
32 }