Bug 5212 - Neutron-mapper has dependency on Ofoverlay renderer
[groupbasedpolicy.git] / neutron-ovsdb / src / main / java / org / opendaylight / controller / config / yang / config / neutron_ovsdb / impl / NeutronOvsdbModule.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.config.yang.config.neutron_ovsdb.impl;
10
11 import org.opendaylight.groupbasedpolicy.neutron.ovsdb.NeutronOvsdb;
12 import org.osgi.framework.BundleContext;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 public class NeutronOvsdbModule extends org.opendaylight.controller.config.yang.config.neutron_ovsdb.impl.AbstractNeutronOvsdbModule {
17
18     private final Logger LOG = LoggerFactory.getLogger(NeutronOvsdbModule.class);
19     private BundleContext bundleContext;
20
21     public NeutronOvsdbModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
22         super(identifier, dependencyResolver);
23     }
24
25     public NeutronOvsdbModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.neutron_ovsdb.impl.NeutronOvsdbModule oldModule, java.lang.AutoCloseable oldInstance) {
26         super(identifier, dependencyResolver, oldModule, oldInstance);
27     }
28
29     @Override
30     public void customValidation() {
31         // add custom validation form module attributes here.
32     }
33
34     @Override
35     public java.lang.AutoCloseable createInstance() {
36         final NeutronOvsdb neutronOvsdb = new NeutronOvsdb(getDataBrokerDependency(), getRpcRegistryDependency());
37         LOG.info("Neutron ovsdb started.");
38         return neutronOvsdb;
39     }
40
41     public void setBundleContext(BundleContext bundleContext) {
42         this.bundleContext = bundleContext;
43     }
44
45 }