Fixed bug in discovering JVM loaded case classes during code generation
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / BindingBrokerImplModule.java
index c3fe5f70f1b4b99ec9a7d14e061579d5b8d04932..c46b0dd6b4c529d00e0fae55f862f6a0229e701b 100644 (file)
@@ -1,53 +1,53 @@
-/**
-* Generated file
-
-* Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-broker-impl
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Wed Nov 20 17:33:01 CET 2013
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.controller.config.yang.md.sal.binding.impl;
-
-import org.opendaylight.controller.sal.binding.impl.BindingAwareBrokerImpl;
-import org.osgi.framework.BundleContext;
-
-/**
-*
-*/
-public final class BindingBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModule
-{
-
-    private BundleContext bundleContext;
-
-    public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
-        super(identifier, dependencyResolver);
-    }
-
-    public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, BindingBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
-        super(identifier, dependencyResolver, oldModule, oldInstance);
-    }
-
-    @Override
-    public void validate(){
-        super.validate();
-        // Add custom validation for module attributes here.
-    }
-
-    @Override
-    public java.lang.AutoCloseable createInstance() {
-        BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getBundleContext());
-        broker.setDataBroker(getDataBrokerDependency());
-        broker.setNotifyBroker(getNotificationServiceDependency());
-        broker.start();
-        return broker;
-    }
-
-    public BundleContext getBundleContext() {
-        return bundleContext;
-    }
-
-    public void setBundleContext(BundleContext bundleContext) {
-        this.bundleContext = bundleContext;
-    }
-}
+/**\r
+* Generated file\r
+\r
+* Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-broker-impl\r
+* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator\r
+* Generated at: Wed Nov 20 17:33:01 CET 2013\r
+*\r
+* Do not modify this file unless it is present under src/main directory\r
+*/\r
+package org.opendaylight.controller.config.yang.md.sal.binding.impl;\r
+\r
+import org.opendaylight.controller.sal.binding.impl.BindingAwareBrokerImpl;\r
+import org.osgi.framework.BundleContext;\r
+\r
+import com.google.common.base.Preconditions;\r
+\r
+/**\r
+*\r
+*/\r
+public final class BindingBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModule {\r
+\r
+    private BundleContext bundleContext;\r
+\r
+    public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {\r
+        super(identifier, dependencyResolver);\r
+    }\r
+\r
+    public BindingBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, BindingBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {\r
+        super(identifier, dependencyResolver, oldModule, oldInstance);\r
+    }\r
+\r
+    @Override\r
+    public void validate(){\r
+        super.validate();\r
+    }\r
+\r
+    @Override\r
+    public java.lang.AutoCloseable createInstance() {\r
+        BindingAwareBrokerImpl broker = new BindingAwareBrokerImpl(getIdentifier().getInstanceName(),getBundleContext());\r
+        broker.setDataBroker(getDataBrokerDependency());\r
+        broker.setNotifyBroker(getNotificationServiceDependency());\r
+        broker.start();\r
+        return broker;\r
+    }\r
+\r
+    public BundleContext getBundleContext() {\r
+        return bundleContext;\r
+    }\r
+\r
+    public void setBundleContext(BundleContext bundleContext) {\r
+        this.bundleContext = bundleContext;\r
+    }\r
+}\r