Merge "Bug 5526 - Added new servlet to the web.xml for new restconf implementation"
[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.restconf.rest.api.schema.context.SchemaContextHandler;
11 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
12 import org.osgi.framework.BundleContext;
13
14 /**
15  * Interface for register RestconfApplication service via {@link BundleContext}.
16  *
17  */
18 public interface RestconfApplicationService {
19
20     /**
21      * Get {@link SchemaContextHandler} via service. Actually use by
22      * {@link RestConnectorProvider} to register {@link SchemaContextListener}
23      * of {@link SchemaContextHandler}.
24      *
25      * @return {@link SchemaContextHandler}
26      */
27     SchemaContextHandler getSchemaContextHandler();
28 }