Merge "Fix for Bug 3"
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / osgi / MountProviderServiceProxy.java
1 package org.opendaylight.controller.sal.dom.broker.osgi;
2
3 import org.opendaylight.controller.sal.core.api.data.DataBrokerService;
4 import org.opendaylight.controller.sal.core.api.mount.MountProvisionInstance;
5 import org.opendaylight.controller.sal.core.api.mount.MountProvisionService;
6 import org.opendaylight.yangtools.concepts.ListenerRegistration;
7 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
8 import org.osgi.framework.ServiceReference;
9
10 public class MountProviderServiceProxy extends AbstractBrokerServiceProxy<MountProvisionService> implements MountProvisionService{
11
12     
13     public MountProviderServiceProxy(ServiceReference<MountProvisionService> ref, MountProvisionService delegate) {
14         super(ref, delegate);
15     }
16
17     public MountProvisionInstance getMountPoint(InstanceIdentifier path) {
18         return getDelegate().getMountPoint(path);
19     }
20
21     public MountProvisionInstance createMountPoint(InstanceIdentifier path) {
22         return getDelegate().createMountPoint(path);
23     }
24
25     public MountProvisionInstance createOrGetMountPoint(InstanceIdentifier path) {
26         return getDelegate().createOrGetMountPoint(path);
27     }
28     
29     @Override
30     public ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener) {
31         return getDelegate().registerProvisionListener(listener);
32     }
33 }