Expose default module instances into OSGi
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / ForwardedCompatibleDataBrokerImplModule.java
1 /*
2  * Copyright (c) 2015 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.md.sal.binding.compat.HydrogenDataBrokerAdapter;
11
12 import java.util.Collection;
13 import java.util.Collections;
14 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
15 import org.opendaylight.controller.sal.core.api.Provider;
16
17 /**
18 *
19 */
20 @Deprecated
21 public final class ForwardedCompatibleDataBrokerImplModule extends
22         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractForwardedCompatibleDataBrokerImplModule
23         implements Provider {
24
25     public ForwardedCompatibleDataBrokerImplModule(
26             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28         super(identifier, dependencyResolver);
29     }
30
31     public ForwardedCompatibleDataBrokerImplModule(
32             final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
33             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
34             final ForwardedCompatibleDataBrokerImplModule oldModule, final java.lang.AutoCloseable oldInstance) {
35
36         super(identifier, dependencyResolver, oldModule, oldInstance);
37     }
38
39     @Override
40     protected void customValidation() {
41     }
42
43     @Override
44     public java.lang.AutoCloseable createInstance() {
45         final HydrogenDataBrokerAdapter dataBroker = new HydrogenDataBrokerAdapter(getDataBrokerDependency());
46         return dataBroker;
47     }
48
49     @Override
50     public void onSessionInitiated(final ProviderSession session) {
51
52     }
53
54     @Override
55     public Collection<ProviderFunctionality> getProviderFunctionality() {
56         return Collections.emptySet();
57     }
58 }