blob: c55475fd720572fc59cbf4d2c39de97d80e31d15 [file] [log] [blame]
Thomas Vachuska6d697f12015-03-08 20:59:50 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska6d697f12015-03-08 20:59:50 -07003 *
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.cfg;
17
18import java.util.Set;
19
Ray Milkey911c5192015-09-30 10:56:43 -070020import com.google.common.collect.ImmutableSet;
21
Thomas Vachuska6d697f12015-03-08 20:59:50 -070022/**
23 * Adapter for testing against component configuration service.
24 */
25public class ComponentConfigAdapter implements ComponentConfigService {
Ray Milkey911c5192015-09-30 10:56:43 -070026
Thomas Vachuska6d697f12015-03-08 20:59:50 -070027 @Override
28 public Set<String> getComponentNames() {
29 return null;
30 }
31
32 @Override
33 public void registerProperties(Class<?> componentClass) {
34
35 }
36
37 @Override
38 public void unregisterProperties(Class<?> componentClass, boolean clear) {
39
40 }
41
42 @Override
43 public Set<ConfigProperty> getProperties(String componentName) {
Ray Milkey911c5192015-09-30 10:56:43 -070044 return ImmutableSet.of();
Thomas Vachuska6d697f12015-03-08 20:59:50 -070045 }
46
47 @Override
48 public void setProperty(String componentName, String name, String value) {
49
50 }
51
52 @Override
andreadd106a62015-10-02 13:39:48 -070053 public void preSetProperty(String componentName, String name, String value) {
54 }
55
56 @Override
Thomas Vachuska6d697f12015-03-08 20:59:50 -070057 public void unsetProperty(String componentName, String name) {
58
59 }
60}