Inject MD_SAL services directly in sal-binding-it tests
[controller.git] / opendaylight / md-sal / sal-dom-config / src / main / java / org / opendaylight / controller / config / yang / config / legacy_entity_ownership_service_provider / LegacyEntityOwnershipServiceProviderModuleFactory.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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.config.legacy_entity_ownership_service_provider;
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  * Deprecated.
17  *
18  * @deprecated Replaced by blueprint wiring
19  */
20 @Deprecated
21 public class LegacyEntityOwnershipServiceProviderModuleFactory
22         extends AbstractLegacyEntityOwnershipServiceProviderModuleFactory {
23     @Override
24     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
25             BundleContext bundleContext) {
26         LegacyEntityOwnershipServiceProviderModule module = (LegacyEntityOwnershipServiceProviderModule)
27                 super.createModule(instanceName, dependencyResolver, bundleContext);
28         module.setBundleContext(bundleContext);
29         return module;
30     }
31
32     @Override
33     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
34             DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
35         LegacyEntityOwnershipServiceProviderModule module = (LegacyEntityOwnershipServiceProviderModule)
36                 super.createModule(instanceName, dependencyResolver, old, bundleContext);
37         module.setBundleContext(bundleContext);
38         return module;
39     }
40 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.