Merge "Fix modules Restconf call for mounted devices"
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / ProviderContextImpl.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.sal.dom.broker;
9
10 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
11 import org.opendaylight.controller.sal.core.api.Provider;
12
13 class ProviderContextImpl extends ConsumerContextImpl implements ProviderSession {
14     private final Provider provider;
15
16     public ProviderContextImpl(final Provider provider, final BrokerImpl broker) {
17         super(null, broker);
18         this.provider = provider;
19     }
20
21     @Override
22     public void close() {
23     }
24
25     /**
26      * @return the provider
27      */
28     public Provider getProvider() {
29         return provider;
30     }
31
32     /**
33      * @param provider
34      *            the provider to set
35      */
36 }