Add blueprint wiring for netconf-impl
[netconf.git] / netconf / netconf-impl / src / main / java / org / opendaylight / controller / config / yang / config / netconf / northbound / impl / NetconfMapperAggregatorModuleFactory.java
index 8a8ffb748af07b64ab93a86fac7d99d00534d41c..c0c2c682acecbec5e4fcf2f5180ae22cf960388e 100644 (file)
 * Do not modify this file unless it is present under src/main directory
 */
 package org.opendaylight.controller.config.yang.config.netconf.northbound.impl;
-public class NetconfMapperAggregatorModuleFactory extends org.opendaylight.controller.config.yang.config.netconf.northbound.impl.AbstractNetconfMapperAggregatorModuleFactory {
 
+import org.opendaylight.controller.config.api.DependencyResolver;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @deprecated Replaced by blueprint wiring
+ */
+@Deprecated
+public class NetconfMapperAggregatorModuleFactory extends AbstractNetconfMapperAggregatorModuleFactory {
+
+    @Override
+    public NetconfMapperAggregatorModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
+                                                           NetconfMapperAggregatorModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) {
+        NetconfMapperAggregatorModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
+                oldInstance, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
+
+    @Override
+    public NetconfMapperAggregatorModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
+                                                      BundleContext bundleContext) {
+        NetconfMapperAggregatorModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
+        module.setBundleContext(bundleContext);
+        return module;
+    }
 }