added yang file describing openflowplugin-impl as CoSS module
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / openflow / common / config / impl / rev150327 / OpenFlowProviderModule.java
1 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev150327;
2
3 import org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider;
4 import org.opendaylight.openflowplugin.impl.OpenflowPluginProviderImpl;
5
6 public class OpenFlowProviderModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev150327.AbstractOpenFlowProviderModule {
7     public OpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
8         super(identifier, dependencyResolver);
9     }
10
11     public OpenFlowProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.common.config.impl.rev150327.OpenFlowProviderModule oldModule, java.lang.AutoCloseable oldInstance) {
12         super(identifier, dependencyResolver, oldModule, oldInstance);
13     }
14
15     @Override
16     public void customValidation() {
17         // add custom validation form module attributes here.
18     }
19
20     @Override
21     public java.lang.AutoCloseable createInstance() {
22         OpenFlowPluginProvider openflowPluginProvider = new OpenflowPluginProviderImpl();
23
24         openflowPluginProvider.setSwitchConnectionProviders(getOpenflowSwitchConnectionProviderDependency());
25         openflowPluginProvider.initialize();
26         return openflowPluginProvider;
27     }
28
29 }