Prevent ConfigPusher from killing its thread
[controller.git] / opendaylight / md-sal / clustered-data-store / implementation / src / main / java / org / opendaylight / controller / config / yang / md / sal / dom / cluster / store / ClusteredDataStoreImplModule.java
1 /**
2 * Generated file
3
4 * Generated from: yang module name: odl-sal-dom-clustered-store-cfg  yang module local name: dom-clustered-store-impl
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Wed Nov 27 17:09:17 CET 2013
7 *
8 * Do not modify this file unless it is present under src/main directory
9 */
10 package org.opendaylight.controller.config.yang.md.sal.dom.cluster.store;
11
12 import org.opendaylight.controller.datastore.internal.ClusteredDataStoreManager;
13 import org.osgi.framework.BundleContext;
14
15 /**
16 *
17 */
18 public final class ClusteredDataStoreImplModule extends org.opendaylight.controller.config.yang.md.sal.dom.cluster.store.AbstractClusteredDataStoreImplModule
19 {
20
21     private BundleContext bundleContext;
22
23     public ClusteredDataStoreImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
24         super(identifier, dependencyResolver);
25     }
26
27     public ClusteredDataStoreImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, ClusteredDataStoreImplModule oldModule, java.lang.AutoCloseable oldInstance) {
28         super(identifier, dependencyResolver, oldModule, oldInstance);
29     }
30
31     @Override
32     public void validate(){
33         super.validate();
34         // Add custom validation for module attributes here.
35     }
36
37     @Override
38     public java.lang.AutoCloseable createInstance() {
39         ClusteredDataStoreManager manager = new ClusteredDataStoreManager();
40         manager.setContext(bundleContext);
41         manager.start();
42         return manager;
43     }
44
45     public void setBundleContext(BundleContext bundleContext) {
46         this.bundleContext = bundleContext;
47     }
48 }