/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.md.sal.binding.compat; import org.opendaylight.controller.md.sal.binding.api.MountPointService; import org.opendaylight.controller.sal.binding.api.mount.MountProviderInstance; import org.opendaylight.controller.sal.binding.api.mount.MountProviderService; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; @Deprecated public class HydrogenMountProvisionServiceAdapter extends HydrogenMountPointServiceAdapter implements MountProviderService { public HydrogenMountProvisionServiceAdapter(final MountPointService mountService) { super(mountService); } @Override public MountProviderInstance createMountPoint(final InstanceIdentifier path) { throw new UnsupportedOperationException("Not implemented"); } @Override public MountProviderInstance createOrGetMountPoint(final InstanceIdentifier path) { return getMountPoint(path); } @Override public ListenerRegistration registerProvisionListener(final MountProvisionListener listener) { return new ListenerRegistration() { @Override public MountProvisionListener getInstance() { return listener; } @Override public void close() { } }; } }