2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.config.yang.sal.restconf.service;
11 import org.opendaylight.controller.config.api.DependencyResolver;
12 import org.osgi.framework.BundleContext;
18 * Generated from: yang module name: sal-restconf-service yang module local name: json-restconf-service-impl
19 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
20 * Generated at: Tue Sep 22 07:17:38 EDT 2015
23 * Do not modify this file unless it is present under src/main directory
26 public class JSONRestconfServiceModuleFactory
27 extends org.opendaylight.controller.config.yang.sal.restconf.service.AbstractJSONRestconfServiceModuleFactory {
29 public JSONRestconfServiceModule instantiateModule(final String instanceName,
30 final DependencyResolver dependencyResolver, final BundleContext bundleContext) {
31 final JSONRestconfServiceModule restConnectorModule = super.instantiateModule(instanceName,
32 dependencyResolver, bundleContext);
33 restConnectorModule.setBundleContext(bundleContext);
34 return restConnectorModule;
38 public JSONRestconfServiceModule instantiateModule(final String instanceName,
39 final DependencyResolver dependencyResolver, final JSONRestconfServiceModule oldModule,
40 final AutoCloseable oldInstance, final BundleContext bundleContext) {
41 final JSONRestconfServiceModule restConnectorModule = super.instantiateModule(instanceName,
42 dependencyResolver, oldModule, oldInstance, bundleContext);
43 restConnectorModule.setBundleContext(bundleContext);
44 return restConnectorModule;