96020c6d9761088d59bd6f4cfda280924b24e2e4
[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.yangtools.concepts.ObjectRegistration;
13 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
14 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
15
16 import com.google.common.base.Optional;
17
18
19 public interface DOMMountPointService extends BrokerService {
20
21     Optional<DOMMountPoint> getMountPoint(InstanceIdentifier path);
22
23     DOMMountPointBuilder createMountPoint(InstanceIdentifier path);
24
25
26     public interface DOMMountPointBuilder {
27
28         <T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
29
30         DOMMountPointBuilder addInitialSchemaContext(SchemaContext ctx);
31
32         ObjectRegistration<DOMMountPoint> register();
33     }
34 }

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