Added transactions statistics support.
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / BindingBrokerImplModule.java
1 /**\r
2 * Generated file\r
3 \r
4 * Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-broker-impl\r
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator\r
6 * Generated at: Wed Nov 20 17:33:01 CET 2013\r
7 *\r
8 * Do not modify this file unless it is present under src/main directory\r
9 */\r
10 package org.opendaylight.controller.config.yang.md.sal.binding.impl;\r
11 \r
12 import org.opendaylight.controller.sal.binding.impl.BindingAwareBrokerImpl;\r
13 import org.osgi.framework.BundleContext;\r
14 \r
15 import com.google.common.base.Preconditions;\r
16 \r
17 /**\r
18 *\r
19 */\r
20 public final class BindingBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModule {\r
21 \r
22     private BundleContext bundleContext;\r
23 \r
24     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {\r
25         super(identifier, dependencyResolver);\r
26     }\r
27 \r
28     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, BindingBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {\r
29         super(identifier, dependencyResolver, oldModule, oldInstance);\r
30     }\r
31 \r
32     @Override\r
33     public void validate(){\r
34         super.validate();\r
35     }\r
36 \r
37     @Override\r
38     public java.lang.AutoCloseable createInstance() {\r
39         BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getBundleContext());\r
40         broker.setDataBroker(getDataBrokerDependency());\r
41         broker.setNotifyBroker(getNotificationServiceDependency());\r
42         broker.start();\r
43         return broker;\r
44     }\r
45 \r
46     public BundleContext getBundleContext() {\r
47         return bundleContext;\r
48     }\r
49 \r
50     public void setBundleContext(BundleContext bundleContext) {\r
51         this.bundleContext = bundleContext;\r
52     }\r
53 }\r