Merge "BUG 1595 - Clustering : NPE on startup"
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / config / yang / config / distributed_datastore_provider / DistributedConfigDataStoreProviderModuleFactory.java
1 /*
2 * Generated file
3 *
4 * Generated from: yang module name: distributed-datastore-provider yang module local name: distributed-config-datastore-provider
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Tue Jun 24 17:14:50 PDT 2014
7 *
8 * Do not modify this file unless it is present under src/main directory
9 */
10 package org.opendaylight.controller.config.yang.config.distributed_datastore_provider;
11
12 import org.opendaylight.controller.config.api.DependencyResolver;
13 import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
14 import org.opendaylight.controller.config.spi.Module;
15 import org.osgi.framework.BundleContext;
16
17 public class DistributedConfigDataStoreProviderModuleFactory extends org.opendaylight.controller.config.yang.config.distributed_datastore_provider.AbstractDistributedConfigDataStoreProviderModuleFactory {
18
19     @Override
20     public Module createModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
21         DistributedConfigDataStoreProviderModule module = (DistributedConfigDataStoreProviderModule)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         DistributedConfigDataStoreProviderModule module = (DistributedConfigDataStoreProviderModule)super.createModule(instanceName, dependencyResolver,
30             old, bundleContext);
31         module.setBundleContext(bundleContext);
32         return module;
33     }
34
35
36 }