BUG-6973: Wire Programming with BP
[bgpcep.git] / programming / impl / src / main / java / org / opendaylight / controller / config / yang / programming / impl / InstructionSchedulerImplModuleFactory.java
index be30f81b739ca6640bb0b624916166960cc98f10..51ad6a7c11649a064b21d86fb1270cf735a67439 100644 (file)
  */
 package org.opendaylight.controller.config.yang.programming.impl;
 
+import org.opendaylight.controller.config.api.DependencyResolver;
+import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
+import org.opendaylight.controller.config.spi.Module;
+import org.osgi.framework.BundleContext;
+
 /**
-*
-*/
+ * @deprecated Replaced by blueprint wiring
+ */
 public class InstructionSchedulerImplModuleFactory extends
         org.opendaylight.controller.config.yang.programming.impl.AbstractInstructionSchedulerImplModuleFactory {
 
+    @Override
+    public Module createModule(final String instanceName, final DependencyResolver dependencyResolver,
+        final BundleContext bundleContext) {
+        final InstructionSchedulerImplModule module = (InstructionSchedulerImplModule)
+            super.createModule(instanceName, dependencyResolver, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
+
+    @Override
+    public Module createModule(final String instanceName, final DependencyResolver dependencyResolver,
+        final DynamicMBeanWithInstance old, final BundleContext bundleContext) throws Exception {
+        final InstructionSchedulerImplModule module = (InstructionSchedulerImplModule)
+            super.createModule(instanceName, dependencyResolver, old, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
 }