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
9 package org.opendaylight.mdsal.dom.api;
11 import com.google.common.base.Optional;
12 import org.opendaylight.yangtools.concepts.ListenerRegistration;
13 import org.opendaylight.yangtools.concepts.ObjectRegistration;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
18 public interface DOMMountPointService extends DOMService {
20 Optional<DOMMountPoint> getMountPoint(YangInstanceIdentifier path);
22 DOMMountPointBuilder createMountPoint(YangInstanceIdentifier path);
24 ListenerRegistration<DOMMountPointListener> registerProvisionListener(DOMMountPointListener listener);
26 public interface DOMMountPointBuilder {
28 <T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
30 DOMMountPointBuilder addInitialSchemaContext(SchemaContext ctx);
32 ObjectRegistration<DOMMountPoint> register();