Merge "HostTracker hosts DB key scheme implementation"
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / BindingBrokerImplModule.java
1 /**
2 * Generated file
3
4 * Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-broker-impl
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.sal.binding.impl.BindingAwareBrokerImpl;
13 import org.osgi.framework.BundleContext;
14
15 /**
16 *
17 */
18 public final class BindingBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModule
19 {
20
21     private BundleContext bundleContext;
22
23     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
24         super(identifier, dependencyResolver);
25     }
26
27     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, BindingBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
28         super(identifier, dependencyResolver, oldModule, oldInstance);
29     }
30
31     @Override
32     public void validate(){
33         super.validate();
34         // Add custom validation for module attributes here.
35     }
36
37     @Override
38     public java.lang.AutoCloseable createInstance() {
39         BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getBundleContext());
40         broker.setDataBroker(getDataBrokerDependency());
41         broker.setNotifyBroker(getNotificationServiceDependency());
42         broker.start();
43         return broker;
44     }
45
46     public BundleContext getBundleContext() {
47         return bundleContext;
48     }
49
50     public void setBundleContext(BundleContext bundleContext) {
51         this.bundleContext = bundleContext;
52     }
53 }