52fbbf64951c012831918faa98e619a52eaab73e
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / controller / config / yang / sal / restconf / service / JSONRestconfServiceModuleFactory.java
1 /*
2  * Copyright (c) 2015 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
9 package org.opendaylight.controller.config.yang.sal.restconf.service;
10
11 import org.opendaylight.controller.config.api.DependencyResolver;
12 import org.osgi.framework.BundleContext;
13
14 /**
15 * Generated file.
16 *
17 * <p>
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
21 *
22 * <p>
23 * Do not modify this file unless it is present under src/main directory
24 */
25 @Deprecated
26 public class JSONRestconfServiceModuleFactory
27         extends org.opendaylight.controller.config.yang.sal.restconf.service.AbstractJSONRestconfServiceModuleFactory {
28     @Override
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;
35     }
36
37     @Override
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;
45     }
46 }