/** * Generated file * Generated from: yang module name: openflow-provider-impl yang module local name: openflow-provider-impl * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator * Generated at: Wed Apr 02 16:59:36 PDT 2014 * * Do not modify this file unless it is present under src/main directory */ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev140326; import org.opendaylight.openflowplugin.openflow.md.core.sal.OpenflowPluginProvider; import org.osgi.framework.BundleContext; /** * */ public final class ConfigurableOpenFlowProviderModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev140326.AbstractConfigurableOpenFlowProviderModule { private OpenflowPluginProvider pluginProvider; private BundleContext bundleContext; /** * @param identifier * @param dependencyResolver */ public ConfigurableOpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); } /** * @param identifier * @param dependencyResolver * @param oldModule * @param oldInstance */ public ConfigurableOpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, ConfigurableOpenFlowProviderModule oldModule, java.lang.AutoCloseable oldInstance) { super(identifier, dependencyResolver, oldModule, oldInstance); } @Override protected void customValidation() { // Add custom validation for module attributes here. } @Override public java.lang.AutoCloseable createInstance() { pluginProvider = new OpenflowPluginProvider(); pluginProvider.setContext(bundleContext); pluginProvider.setBroker(getBindingAwareBrokerDependency()); pluginProvider.setSwitchConnectionProviders(getOpenflowSwitchConnectionProviderDependency()); pluginProvider.registerProvider(); return pluginProvider; } /** * @param bundleContext the bundleContext to set, see {@link OpenflowPluginProvider#setContext(BundleContext)} * * @deprecated we should avoid osgi specific stuff .. once, */ @Deprecated public void setBundleContext(BundleContext bundleContext) { this.bundleContext = bundleContext; } }