Convert rsvp bundles to blueprint
[bgpcep.git] / rsvp / spi / src / main / java / org / opendaylight / controller / config / yang / rsvp / spi / SimpleRSVPExtensionProviderContextModuleFactory.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 package org.opendaylight.controller.config.yang.rsvp.spi;
9
10 import org.opendaylight.controller.config.api.DependencyResolver;
11 import org.osgi.framework.BundleContext;
12
13 /**
14  * @deprecated Replaced by blueprint wiring
15  */
16 @Deprecated
17 public class SimpleRSVPExtensionProviderContextModuleFactory extends AbstractSimpleRSVPExtensionProviderContextModuleFactory {
18     @Override
19     public SimpleRSVPExtensionProviderContextModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
20             SimpleRSVPExtensionProviderContextModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) {
21         SimpleRSVPExtensionProviderContextModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
22                 oldInstance, bundleContext);
23         module.setBundleContext(bundleContext);
24         return module;
25     }
26
27     @Override
28     public SimpleRSVPExtensionProviderContextModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
29             BundleContext bundleContext) {
30         SimpleRSVPExtensionProviderContextModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
31         module.setBundleContext(bundleContext);
32         return module;
33     }
34 }