2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.md.sal.binding.compat;
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;
16 public class HydrogenMountProvisionServiceAdapter extends HydrogenMountPointServiceAdapter implements MountProviderService {
18 public HydrogenMountProvisionServiceAdapter(final MountPointService mountService) {
23 public MountProviderInstance createMountPoint(final InstanceIdentifier<?> path) {
24 throw new UnsupportedOperationException("Not implemented");
28 public MountProviderInstance createOrGetMountPoint(final InstanceIdentifier<?> path) {
29 return getMountPoint(path);
33 public ListenerRegistration<MountProvisionListener> registerProvisionListener(final MountProvisionListener listener) {
34 return new ListenerRegistration<MountProvisionListener>() {
37 public MountProvisionListener getInstance() {