9ce3ebf73f26793089c171126e33db8c6d3d956d
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / DataBrokerImplModuleFactory.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.binding.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 *
17 */
18 public class DataBrokerImplModuleFactory extends
19         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractDataBrokerImplModuleFactory {
20
21     @Override
22     public Module createModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
23         DataBrokerImplModule module = (DataBrokerImplModule) super.createModule(instanceName, dependencyResolver,
24                 bundleContext);
25         module.setBundleContext(bundleContext);
26         return module;
27     }
28
29     @Override
30     public Module createModule(String instanceName, DependencyResolver dependencyResolver,
31             DynamicMBeanWithInstance old, BundleContext bundleContext) throws Exception {
32         DataBrokerImplModule module = (DataBrokerImplModule) super.createModule(instanceName, dependencyResolver, old,
33                 bundleContext);
34         module.setBundleContext(bundleContext);
35         return module;
36     }
37
38 }

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