Merge "Null data from XML"
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / dom / impl / SchemaServiceImplSingletonModule.java
1 /**
2 * Generated file
3
4 * Generated from: yang module name: opendaylight-sal-dom-broker-impl  yang module local name: schema-service-singleton
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Wed Nov 20 17:01:31 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.impl;
11
12 import org.opendaylight.controller.sal.dom.broker.SchemaServiceImpl;
13 import org.opendaylight.yangtools.yang.parser.impl.YangParserImpl;
14 import org.osgi.framework.BundleContext;
15
16 /**
17 *
18 */
19 public final class SchemaServiceImplSingletonModule extends org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractSchemaServiceImplSingletonModule
20 {
21
22     BundleContext bundleContext;
23     
24     public SchemaServiceImplSingletonModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
25         super(identifier, dependencyResolver);
26     }
27
28     public SchemaServiceImplSingletonModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, SchemaServiceImplSingletonModule oldModule, java.lang.AutoCloseable oldInstance) {
29         super(identifier, dependencyResolver, oldModule, oldInstance);
30     }
31     
32     @Override
33     public boolean canReuseInstance(AbstractSchemaServiceImplSingletonModule oldModule) {
34         return true;
35     }
36
37     public BundleContext getBundleContext() {
38         return bundleContext;
39     }
40
41     public void setBundleContext(BundleContext bundleContext) {
42         this.bundleContext = bundleContext;
43     }
44
45     @Override
46     public void validate(){
47         super.validate();
48     }
49
50     @Override
51     public java.lang.AutoCloseable createInstance() {
52         SchemaServiceImpl newInstance = new SchemaServiceImpl();
53         newInstance.setContext(getBundleContext());
54         newInstance.setParser(new YangParserImpl());
55         newInstance.start();
56         return newInstance;
57     }
58 }