Fixed major sonar warnings in Binding Aware Broker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / DataBrokerImplModuleFactory.java
1 /**
2  * Generated file
3
4  * Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-data-broker
5  * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6  * Generated at: Wed Nov 20 17:33:01 CET 2013
7  *
8  * Do not modify this file unless it is present under src/main directory
9  */
10 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
11
12 import org.opendaylight.controller.config.api.DependencyResolver;
13 import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
14 import org.opendaylight.controller.config.spi.Module;
15 import org.osgi.framework.BundleContext;
16
17 /**
18 *
19 */
20 public class DataBrokerImplModuleFactory extends
21         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractDataBrokerImplModuleFactory {
22
23     @Override
24     public Module createModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
25         DataBrokerImplModule module = (DataBrokerImplModule) super.createModule(instanceName, dependencyResolver,
26                 bundleContext);
27         module.setBundleContext(bundleContext);
28         return module;
29     }
30
31     @Override
32     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
33             DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
34         DataBrokerImplModule module = (DataBrokerImplModule) super.createModule(instanceName, dependencyResolver, old,
35                 bundleContext);
36         module.setBundleContext(bundleContext);
37         return module;
38     }
39
40 }