Bug 1029: Remove dead code: sal-schema-repository-api
[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  * Copyright (c) 2014 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 /**
9 * Generated file
10
11 * Generated from: yang module name: odl-sal-dom-clustered-store-cfg  yang module local name: dom-clustered-store-impl
12 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
13 * Generated at: Wed Nov 27 17:09:17 CET 2013
14 *
15 * Do not modify this file unless it is present under src/main directory
16 */
17 package org.opendaylight.controller.config.yang.md.sal.dom.cluster.store;
18
19 import org.opendaylight.controller.datastore.internal.ClusteredDataStoreManager;
20 import org.osgi.framework.BundleContext;
21
22 /**
23 *
24 */
25 public final class ClusteredDataStoreImplModule extends org.opendaylight.controller.config.yang.md.sal.dom.cluster.store.AbstractClusteredDataStoreImplModule
26 {
27
28     private BundleContext bundleContext;
29
30     public ClusteredDataStoreImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
31         super(identifier, dependencyResolver);
32     }
33
34     public ClusteredDataStoreImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, ClusteredDataStoreImplModule oldModule, java.lang.AutoCloseable oldInstance) {
35         super(identifier, dependencyResolver, oldModule, oldInstance);
36     }
37
38     @Override
39     public void validate(){
40         super.validate();
41         // Add custom validation for module attributes here.
42     }
43
44     @Override
45     public java.lang.AutoCloseable createInstance() {
46         ClusteredDataStoreManager manager = new ClusteredDataStoreManager();
47         manager.setContext(bundleContext);
48         manager.start();
49         return manager;
50     }
51
52     public void setBundleContext(BundleContext bundleContext) {
53         this.bundleContext = bundleContext;
54     }
55 }