blob: c59a934e348234c3ac2d6406c4a3a9821b983975 [file] [log] [blame]
Yuta HIGUCHIb9af6b72016-06-10 10:52:58 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Yuta HIGUCHIb9af6b72016-06-10 10:52:58 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * 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, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16package org.onosproject.net.config;
17
18import org.onosproject.net.ConnectPoint;
19
20import com.google.common.annotations.Beta;
21
22/**
23 * Abstraction of a port operator registry.
24 */
25@Beta
26public interface PortConfigOperatorRegistry {
27
28 /**
29 * Registers {@link PortConfigOperator} instance.
30 *
31 * @param portOp {@link PortConfigOperator} instance.
32 * @param configs {@link Config} class for a Port referred by {@code portOp}
33 */
34 void registerPortConfigOperator(PortConfigOperator portOp,
35 Class<? extends Config<ConnectPoint>>... configs);
36
37 /**
38 * Unregisters {@link PortConfigOperator} instance.
39 *
40 * @param portOp {@link PortConfigOperator} instance.
41 */
42 void unregisterPortConfigOperator(PortConfigOperator portOp);
43
44}