4 * Generated from: yang module name: openflow-provider-impl yang module local name: openflow-provider-impl
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Wed Apr 02 16:59:36 PDT 2014
8 * Do not modify this file unless it is present under src/main directory
10 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev140326;
12 import org.opendaylight.openflowplugin.openflow.md.core.sal.OpenflowPluginProvider;
13 import org.osgi.framework.BundleContext;
18 public final class ConfigurableOpenFlowProviderModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev140326.AbstractConfigurableOpenFlowProviderModule {
20 private OpenflowPluginProvider pluginProvider;
21 private BundleContext bundleContext;
25 * @param dependencyResolver
27 public ConfigurableOpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28 super(identifier, dependencyResolver);
33 * @param dependencyResolver
37 public ConfigurableOpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
38 ConfigurableOpenFlowProviderModule oldModule, java.lang.AutoCloseable oldInstance) {
40 super(identifier, dependencyResolver, oldModule, oldInstance);
44 protected void customValidation() {
45 // Add custom validation for module attributes here.
49 public java.lang.AutoCloseable createInstance() {
50 pluginProvider = new OpenflowPluginProvider();
51 pluginProvider.setContext(bundleContext);
52 pluginProvider.setBroker(getBindingAwareBrokerDependency());
53 pluginProvider.setSwitchConnectionProviders(getOpenflowSwitchConnectionProviderDependency());
54 pluginProvider.registerProvider();
55 return pluginProvider;
59 * @param bundleContext the bundleContext to set, see {@link OpenflowPluginProvider#setContext(BundleContext)}
61 * @deprecated we should avoid osgi specific stuff .. once,
64 public void setBundleContext(BundleContext bundleContext) {
65 this.bundleContext = bundleContext;