716decd93744a2f8076e6a2e494eee775d1222f7
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / osgi / DOMMountPointServiceProxy.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
9 package org.opendaylight.controller.sal.dom.broker.osgi;
10
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.md.sal.dom.api.DOMMountPoint;
13 import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
14 import org.opendaylight.controller.sal.core.api.mount.MountProvisionListener;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
17 import org.osgi.framework.ServiceReference;
18
19 public class DOMMountPointServiceProxy extends AbstractBrokerServiceProxy<DOMMountPointService> implements
20         DOMMountPointService {
21
22     public DOMMountPointServiceProxy(final ServiceReference<DOMMountPointService> ref,
23                                      final DOMMountPointService delegate) {
24         super(ref, delegate);
25     }
26
27     @Override
28     public Optional<DOMMountPoint> getMountPoint(final YangInstanceIdentifier path) {
29         return getDelegate().getMountPoint(path);
30     }
31
32     @Override
33     public DOMMountPointBuilder createMountPoint(final YangInstanceIdentifier path) {
34         return getDelegate().createMountPoint(path);
35     }
36
37     public ListenerRegistration<MountProvisionListener> registerProvisionListener(
38             final MountProvisionListener listener) {
39         return getDelegate().registerProvisionListener(listener);
40     }
41 }