/** * Generated file * Generated from: yang module name: opendaylight-sal-dom-broker-impl yang module local name: schema-service-singleton * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator * Generated at: Wed Nov 20 17:01:31 CET 2013 * * Do not modify this file unless it is present under src/main directory */ package org.opendaylight.controller.config.yang.md.sal.dom.impl; import org.opendaylight.controller.sal.dom.broker.SchemaServiceImpl; import org.opendaylight.yangtools.yang.parser.impl.YangParserImpl; import org.osgi.framework.BundleContext; /** * */ public final class SchemaServiceImplSingletonModule extends org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractSchemaServiceImplSingletonModule { BundleContext bundleContext; public SchemaServiceImplSingletonModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); } public SchemaServiceImplSingletonModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, SchemaServiceImplSingletonModule oldModule, java.lang.AutoCloseable oldInstance) { super(identifier, dependencyResolver, oldModule, oldInstance); } @Override public boolean canReuseInstance(AbstractSchemaServiceImplSingletonModule oldModule) { return true; } public BundleContext getBundleContext() { return bundleContext; } public void setBundleContext(BundleContext bundleContext) { this.bundleContext = bundleContext; } @Override public void validate(){ super.validate(); } @Override public java.lang.AutoCloseable createInstance() { SchemaServiceImpl newInstance = new SchemaServiceImpl(); newInstance.setContext(getBundleContext()); newInstance.setParser(new YangParserImpl()); newInstance.start(); return newInstance; } }