Bug 8568: Remove deprecated MountProviderService from RootBindingAwareBroker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / HydrogenMountProvisionServiceAdapter.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.md.sal.binding.compat;
9
10 import org.opendaylight.controller.md.sal.binding.api.MountPointService;
11 import org.opendaylight.controller.sal.binding.api.mount.MountProviderInstance;
12 import org.opendaylight.controller.sal.binding.api.mount.MountProviderService;
13 import org.opendaylight.yangtools.concepts.ListenerRegistration;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 @Deprecated
16 public class HydrogenMountProvisionServiceAdapter extends HydrogenMountPointServiceAdapter implements MountProviderService {
17
18     public HydrogenMountProvisionServiceAdapter(final MountPointService mountService) {
19         super(mountService);
20     }
21
22     @Override
23     public MountProviderInstance createMountPoint(final InstanceIdentifier<?> path) {
24         throw new UnsupportedOperationException("Not implemented");
25     }
26
27     @Override
28     public MountProviderInstance createOrGetMountPoint(final InstanceIdentifier<?> path) {
29         return getMountPoint(path);
30     }
31
32     @Override
33     public ListenerRegistration<MountProvisionListener> registerProvisionListener(final MountProvisionListener listener) {
34         return new ListenerRegistration<MountProvisionListener>() {
35
36             @Override
37             public MountProvisionListener getInstance() {
38                 return listener;
39             }
40
41             @Override
42             public void close() {
43             }
44         };
45     }
46
47 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.