Fix pax exam issue
[controller.git] / opendaylight / config / netty-timer-config / src / main / java / org / opendaylight / controller / config / yang / netty / timer / HashedWheelTimerModuleFactory.java
index c869413a5e1726349d894cb9ab140dbb8439cd31..6c337904cc0a3f9a2ffb38ada4dadb82ef31c34a 100644 (file)
  */
 package org.opendaylight.controller.config.yang.netty.timer;
 
+import org.opendaylight.controller.config.api.DependencyResolver;
+import org.osgi.framework.BundleContext;
+
 /**
-*
-*/
-public class HashedWheelTimerModuleFactory extends
-        org.opendaylight.controller.config.yang.netty.timer.AbstractHashedWheelTimerModuleFactory {
+ * @deprecated Replaced by blueprint wiring
+ */
+@Deprecated
+public class HashedWheelTimerModuleFactory extends AbstractHashedWheelTimerModuleFactory {
+    @Override
+    public HashedWheelTimerModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver,
+            final HashedWheelTimerModule oldModule, final AutoCloseable oldInstance, final BundleContext bundleContext) {
+        HashedWheelTimerModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
+                oldInstance, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
 
+    @Override
+    public HashedWheelTimerModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver,
+            final BundleContext bundleContext) {
+        HashedWheelTimerModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
 }