Deprecate md-sal config modules
[controller.git] / opendaylight / md-sal / sal-dom-broker-config / src / main / java / org / opendaylight / controller / config / yang / md / sal / dom / impl / DomBrokerImplModuleFactory.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.md.sal.dom.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 /**
16  * @deprecated Replaced by blueprint wiring
17  */
18 @Deprecated
19 public class DomBrokerImplModuleFactory extends
20         org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractDomBrokerImplModuleFactory {
21
22     @Override
23     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
24             BundleContext bundleContext) {
25         DomBrokerImplModule module = (DomBrokerImplModule)super.createModule(instanceName, dependencyResolver,
26                 bundleContext);
27         module.setBundleContext(bundleContext);
28         return module;
29     }
30
31     @Override
32     public Module createModule(String instanceName, DependencyResolver dependencyResolver, DynamicMBeanWithInstance old,
33             BundleContext bundleContext) throws Exception {
34         DomBrokerImplModule module = (DomBrokerImplModule)super.createModule(instanceName, dependencyResolver,
35                 old, bundleContext);
36         module.setBundleContext(bundleContext);
37         return module;
38     }
39 }