rm README.OPENDAYLIGHT (badly outdated)
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / impl / src / main / java / __packageInPathFormat__ / impl / __classPrefix__Provider.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}.impl;
12
13 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
16
17 public class ${classPrefix}Provider {
18
19     private static final Logger LOG = LoggerFactory.getLogger(${classPrefix}Provider.class);
20
21     private final DataBroker dataBroker;
22
23     public ${classPrefix}Provider(final DataBroker dataBroker) {
24         this.dataBroker = dataBroker;
25     }
26
27     /**
28      * Method called when the blueprint container is created.
29      */
30     public void init() {
31         LOG.info("${classPrefix}Provider Session Initiated");
32     }
33
34     /**
35      * Method called when the blueprint container is destroyed.
36      */
37     public void close() {
38         LOG.info("${classPrefix}Provider Closed");
39     }
40 }