3155bd50ab03ac84caf705e2e8c4be8911dda630
[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
9 package org.opendaylight.controller.md.sal.dom.api;
10
11 import org.opendaylight.controller.sal.core.api.BrokerService;
12 import org.opendaylight.controller.sal.core.api.mount.MountProvisionListener;
13 import org.opendaylight.yangtools.concepts.ListenerRegistration;
14 import org.opendaylight.yangtools.concepts.ObjectRegistration;
15 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
16 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
17
18 import com.google.common.base.Optional;
19
20
21 public interface DOMMountPointService extends BrokerService {
22
23     Optional<DOMMountPoint> getMountPoint(InstanceIdentifier path);
24
25     DOMMountPointBuilder createMountPoint(InstanceIdentifier path);
26
27     ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
28
29     public interface DOMMountPointBuilder {
30
31         <T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
32
33         DOMMountPointBuilder addInitialSchemaContext(SchemaContext ctx);
34
35         ObjectRegistration<DOMMountPoint> register();
36     }
37 }

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