Merge "Revert "Replace tabs with spaces in config yang files""
[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     private BundleContext bundleContext;
21
22     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
23         super(identifier, dependencyResolver);
24     }
25
26     public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, BindingBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
27         super(identifier, dependencyResolver, oldModule, oldInstance);
28     }
29
30     @Override
31     public void validate(){
32         super.validate();
33         // Add custom validation for module attributes here.
34     }
35
36     @Override
37     public java.lang.AutoCloseable createInstance() {
38         BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getBundleContext());
39         broker.setDataBroker(getDataBrokerDependency());
40         broker.setNotifyBroker(getNotificationServiceDependency());
41         broker.start();
42         return broker;
43     }
44
45     public BundleContext getBundleContext() {
46         return bundleContext;
47     }
48
49     public void setBundleContext(BundleContext bundleContext) {
50         this.bundleContext = bundleContext;
51     }
52 }