0c4aecbfe6d5bc12998bf3d8cd0aaaa51c99f5ae
[controller.git] / opendaylight / md-sal / sal-dom-config / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / md / sal / config / impl / cluster / singleton / service / rev160718 / ClusterSingletonServiceProviderModuleFactory.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.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.md.sal.config.impl.cluster.singleton.service.rev160718;
9
10 import org.opendaylight.controller.config.api.DependencyResolver;
11 import org.osgi.framework.BundleContext;
12
13 /**
14  * @deprecated Replaced by blueprint wiring but remains for backwards compatibility until downstream users
15  *             of the provided config system service are converted to blueprint.
16  */
17 @Deprecated
18 public class ClusterSingletonServiceProviderModuleFactory extends AbstractClusterSingletonServiceProviderModuleFactory {
19     @Override
20     public ClusterSingletonServiceProviderModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver,
21             final ClusterSingletonServiceProviderModule oldModule, final AutoCloseable oldInstance, final BundleContext bundleContext) {
22         final ClusterSingletonServiceProviderModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
23                 oldInstance, bundleContext);
24         module.setBundleContext(bundleContext);
25         return module;
26     }
27
28     @Override
29     public ClusterSingletonServiceProviderModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver,
30             final BundleContext bundleContext) {
31         final ClusterSingletonServiceProviderModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
32         module.setBundleContext(bundleContext);
33         return module;
34     }
35 }

©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.