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
8 * Do not modify this file unless it is present under src/main directory
\r
10 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
\r
12 import org.opendaylight.controller.sal.binding.impl.BindingAwareBrokerImpl;
\r
13 import org.osgi.framework.BundleContext;
\r
15 import com.google.common.base.Preconditions;
\r
20 public final class BindingBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModule {
\r
22 private BundleContext bundleContext;
\r
24 public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
\r
25 super(identifier, dependencyResolver);
\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
33 public void validate(){
\r
38 public java.lang.AutoCloseable createInstance() {
\r
39 BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getIdentifier().getInstanceName(),getBundleContext());
\r
40 broker.setDataBroker(getDataBrokerDependency());
\r
41 broker.setNotifyBroker(getNotificationServiceDependency());
\r
46 public BundleContext getBundleContext() {
\r
47 return bundleContext;
\r
50 public void setBundleContext(BundleContext bundleContext) {
\r
51 this.bundleContext = bundleContext;
\r