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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.