b9df9669a12a39785b816d4fb2b61ac465340622
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / config / yang / config / distributed_datastore_provider / DistributedOperationalDataStoreProviderModuleFactory.java
1 /*
2  * Copyright (c) 2014, 2015 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.distributed_datastore_provider;
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 DistributedOperationalDataStoreProviderModuleFactory
16         extends AbstractDistributedOperationalDataStoreProviderModuleFactory {
17     @Override
18     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
19             BundleContext bundleContext) {
20         DistributedOperationalDataStoreProviderModule module = (DistributedOperationalDataStoreProviderModule)
21                 super.createModule(instanceName,dependencyResolver,bundleContext);
22         module.setBundleContext(bundleContext);
23         return module;
24     }
25
26     @Override
27     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
28         DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
29         DistributedOperationalDataStoreProviderModule module = (DistributedOperationalDataStoreProviderModule)
30                 super.createModule(instanceName, dependencyResolver,
31             old, bundleContext);
32         module.setBundleContext(bundleContext);
33         return module;
34     }
35
36 }