blob: bb4ba30cac33a013600a95ff5d3490a07fd63434 [file] [log] [blame]
yoonseone92748c2016-12-13 16:37:51 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
yoonseone92748c2016-12-13 16:37:51 -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 */
16
17package org.onosproject.incubator.net.virtual.provider;
18
yoonseon1f518572017-01-03 17:27:26 -080019import org.onosproject.net.provider.ProviderId;
yoonseone92748c2016-12-13 16:37:51 -080020
21public abstract class AbstractVirtualProvider implements VirtualProvider {
yoonseon1f518572017-01-03 17:27:26 -080022 private final ProviderId providerId;
yoonseone92748c2016-12-13 16:37:51 -080023
24 /**
yoonseon1f518572017-01-03 17:27:26 -080025 * Creates a virtual provider with the supplied identifier.
yoonseone92748c2016-12-13 16:37:51 -080026 *
yoonseon1f518572017-01-03 17:27:26 -080027 * @param id a virtual provider id
yoonseone92748c2016-12-13 16:37:51 -080028 */
yoonseon1f518572017-01-03 17:27:26 -080029 protected AbstractVirtualProvider(ProviderId id) {
30 this.providerId = id;
yoonseone92748c2016-12-13 16:37:51 -080031 }
32
33 @Override
yoonseon1f518572017-01-03 17:27:26 -080034 public ProviderId id() {
35 return providerId;
yoonseone92748c2016-12-13 16:37:51 -080036 }
37}