a16a59a92e0f562dcbd32b5649405314b6f07ff9
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / controller / config / yang / bgp / rib / impl / BGPApplicationPeerModuleFactory.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.bgp.rib.impl;
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 @Deprecated
16 public class BGPApplicationPeerModuleFactory extends org.opendaylight.controller.config.yang.bgp.rib.impl.AbstractBGPApplicationPeerModuleFactory {
17
18     @Override
19     public Module createModule(final String instanceName, final DependencyResolver dependencyResolver, final BundleContext bundleContext) {
20         final BGPApplicationPeerModule module = (BGPApplicationPeerModule) super.createModule(instanceName, dependencyResolver, bundleContext);
21         module.setBundleContext(bundleContext);
22         return module;
23     }
24
25     @Override
26     public Module createModule(final String instanceName, final DependencyResolver dependencyResolver,
27             final DynamicMBeanWithInstance old, final BundleContext bundleContext) throws Exception {
28         final BGPApplicationPeerModule module = (BGPApplicationPeerModule)  super.createModule(instanceName, dependencyResolver, old, bundleContext);
29         module.setBundleContext(bundleContext);
30         return module;
31     }
32 }