072eceb4f12b8951c22746c4b98a677f1dc60f24
[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 @Deprecated
16 public class DistributedOperationalDataStoreProviderModuleFactory
17         extends AbstractDistributedOperationalDataStoreProviderModuleFactory {
18     @Override
19     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
20             BundleContext bundleContext) {
21         DistributedOperationalDataStoreProviderModule module = (DistributedOperationalDataStoreProviderModule)
22                 super.createModule(instanceName,dependencyResolver,bundleContext);
23         module.setBundleContext(bundleContext);
24         return module;
25     }
26
27     @Override
28     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
29         DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
30         DistributedOperationalDataStoreProviderModule module = (DistributedOperationalDataStoreProviderModule)
31                 super.createModule(instanceName, dependencyResolver,
32             old, bundleContext);
33         module.setBundleContext(bundleContext);
34         return module;
35     }
36
37 }