Re-added config.version to config-module-archetype.
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / main / java / org / opendaylight / controller / config / yang / md / sal / remote / rpc / ZeroMQServerModuleFactory.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.yang.md.sal.remote.rpc;
9
10 import org.opendaylight.controller.config.api.DependencyResolver;
11 import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
12 import org.opendaylight.controller.config.spi.Module;
13 import org.osgi.framework.BundleContext;
14
15 /**
16 *
17 */
18 public class ZeroMQServerModuleFactory extends org.opendaylight.controller.config.yang.md.sal.remote.rpc.AbstractZeroMQServerModuleFactory
19 {
20
21     @Override
22     public Module createModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
23         ZeroMQServerModule module = (ZeroMQServerModule) super.createModule(instanceName, dependencyResolver, bundleContext);
24         module.setBundleContext(bundleContext);
25         return module;
26     }
27
28     @Override
29     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
30             DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
31         ZeroMQServerModule module = (ZeroMQServerModule) super.createModule(instanceName, dependencyResolver, old,bundleContext);
32         module.setBundleContext(bundleContext);
33         return module;
34     }
35 }