Merge "Fixed for bug 1197"
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / osgi / MountProviderServiceProxy.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.osgi;
9
10 import org.opendaylight.controller.sal.core.api.mount.MountProvisionInstance;
11 import org.opendaylight.controller.sal.core.api.mount.MountProvisionListener;
12 import org.opendaylight.controller.sal.core.api.mount.MountProvisionService;
13 import org.opendaylight.yangtools.concepts.ListenerRegistration;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 import org.osgi.framework.ServiceReference;
16
17 public class MountProviderServiceProxy extends AbstractBrokerServiceProxy<MountProvisionService> implements MountProvisionService{
18
19
20     public MountProviderServiceProxy(ServiceReference<MountProvisionService> ref, MountProvisionService delegate) {
21         super(ref, delegate);
22     }
23
24     @Override
25     public MountProvisionInstance getMountPoint(YangInstanceIdentifier path) {
26         return getDelegate().getMountPoint(path);
27     }
28
29     @Override
30     public MountProvisionInstance createMountPoint(YangInstanceIdentifier path) {
31         return getDelegate().createMountPoint(path);
32     }
33
34     @Override
35     public MountProvisionInstance createOrGetMountPoint(YangInstanceIdentifier path) {
36         return getDelegate().createOrGetMountPoint(path);
37     }
38
39     @Override
40     public ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener) {
41         return getDelegate().registerProvisionListener(listener);
42     }
43 }