0c72b86417d2394c473adb51d8136cb4503ff6b3
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMMountPointService.java
1 /*
2  * Copyright (c) 2014 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.dom.api;
9
10 import com.google.common.base.Optional;
11 import org.opendaylight.mdsal.dom.api.DOMMountPointListener;
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;
16
17 /**
18  * Deprecated.
19  *
20  * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMMountPointService} instead
21  */
22 @Deprecated
23 public interface DOMMountPointService extends DOMService {
24
25     Optional<DOMMountPoint> getMountPoint(YangInstanceIdentifier path);
26
27     DOMMountPointBuilder createMountPoint(YangInstanceIdentifier path);
28
29     ListenerRegistration<DOMMountPointListener> registerProvisionListener(DOMMountPointListener listener);
30
31     interface DOMMountPointBuilder {
32
33         <T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
34
35         DOMMountPointBuilder addInitialSchemaContext(SchemaContext ctx);
36
37         ObjectRegistration<DOMMountPoint> register();
38     }
39 }

©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.