Modify config Module impls to co-exist with blueprint
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / config / yang / config / concurrent_data_broker / DomConcurrentDataBrokerModuleFactory.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.yang.config.concurrent_data_broker;
9
10 import org.opendaylight.controller.config.api.DependencyResolver;
11 import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
12 import org.opendaylight.controller.config.spi.Module;
13 import org.osgi.framework.BundleContext;
14
15 public class DomConcurrentDataBrokerModuleFactory extends AbstractDomConcurrentDataBrokerModuleFactory {
16     @Override
17     public Module createModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
18         DomConcurrentDataBrokerModule module = (DomConcurrentDataBrokerModule)super.createModule(instanceName,
19                 dependencyResolver, bundleContext);
20         module.setBundleContext(bundleContext);
21         return module;
22     }
23
24     @Override
25     public Module createModule(String instanceName, DependencyResolver dependencyResolver, DynamicMBeanWithInstance old,
26             BundleContext bundleContext) throws Exception {
27         DomConcurrentDataBrokerModule module = (DomConcurrentDataBrokerModule)super.createModule(instanceName,
28                 dependencyResolver, old, bundleContext);
29         module.setBundleContext(bundleContext);
30         return module;
31     }
32 }