2 * Copyright (c) 2014 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.mdsal.dom.api;
10 import java.util.Optional;
11 import org.opendaylight.yangtools.concepts.ObjectRegistration;
12 import org.opendaylight.yangtools.concepts.Registration;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 public interface DOMMountPointService extends DOMService<DOMMountPointService, DOMMountPointService.Extension> {
17 * Marker interface for an extension to {@link DOMMountPointService}.
19 interface Extension extends DOMService.Extension<DOMMountPointService, Extension> {
23 Optional<DOMMountPoint> getMountPoint(YangInstanceIdentifier path);
25 DOMMountPointBuilder createMountPoint(YangInstanceIdentifier path);
27 Registration registerProvisionListener(DOMMountPointListener listener);
29 interface DOMMountPointBuilder {
31 <T extends DOMService<T, E>, E extends DOMService.Extension<T, E>> DOMMountPointBuilder addService(
32 Class<T> type, T impl);
34 // FIXME: just Registration
35 ObjectRegistration<DOMMountPoint> register();