blob: 294ae9c5cbd47b433e0d97b47f2d424862597348 [file] [log] [blame]
HIGUCHI Yuta279b8d12015-11-04 10:58:06 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
HIGUCHI Yuta279b8d12015-11-04 10:58:06 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.incubator.rpc;
17
18import java.net.URI;
19
20import org.onosproject.net.provider.Provider;
21
22import com.google.common.annotations.Beta;
23
24//Factory to create RemoteServiceContext
25/**
26 * Abstraction of a remote service implementation provider.
27 */
28@Beta
29public interface RemoteServiceContextProvider extends Provider {
30
31 /**
32 * Returns {@link RemoteServiceContext} for given URI.
33 *
34 * @param uri URI for remote end point.
35 * @return {@link RemoteServiceContext}
36 */
37 RemoteServiceContext get(URI uri);
38}