Bug 5527 - Re-implement ControllerContext.toInstanceIdentifier() method
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / rest / RestconfApplicationService.java
1 /*
2  * Copyright (c) 2016 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.restconf.rest;
9
10 import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
11 import org.opendaylight.restconf.rest.api.schema.context.SchemaContextHandler;
12 import org.opendaylight.restconf.rest.handlers.api.DOMMountPointServiceHandler;
13 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
14 import org.osgi.framework.BundleContext;
15
16 /**
17  * Interface for register RestconfApplication service via {@link BundleContext}.
18  *
19  */
20 public interface RestconfApplicationService {
21
22     /**
23      * Get {@link SchemaContextHandler} via service. Actually use by
24      * {@link RestConnectorProvider} to register {@link SchemaContextListener}
25      * of {@link SchemaContextHandler}.
26      *
27      * @return {@link SchemaContextHandler}
28      */
29     SchemaContextHandler getSchemaContextHandler();
30
31     /**
32      * Get {@link DOMMountPointServiceHandler} via service. Actually use by
33      * {@link RestConnectorProvider} to set {@link DOMMountPointService}.
34      *
35      * @return {@link DOMMountPointServiceHandler}
36      */
37     DOMMountPointServiceHandler getDOMMountPointServiceHandler();
38 }