blob: c112d2fe0456c74bb296b9ebe7f9d29f9c911884 [file] [log] [blame]
Thomas Vachuska02aeb032015-01-06 22:36:30 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
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.app.impl;
17
18import org.apache.karaf.features.Feature;
Jian Li11599162016-01-15 15:46:16 -080019import org.apache.karaf.features.FeaturesListener;
Thomas Vachuska02aeb032015-01-06 22:36:30 -080020import org.apache.karaf.features.Repository;
21
22import java.net.URI;
23import java.util.EnumSet;
24import java.util.Set;
25
26/**
27 * Adapter for testing against Apache Karaf feature service.
28 */
29public class FeaturesServiceAdapter implements org.apache.karaf.features.FeaturesService {
30 @Override
31 public void validateRepository(URI uri) throws Exception {
32
33 }
34
35 @Override
36 public void addRepository(URI uri) throws Exception {
37
38 }
39
40 @Override
41 public void addRepository(URI uri, boolean install) throws Exception {
42
43 }
44
45 @Override
46 public void removeRepository(URI uri) throws Exception {
47
48 }
49
50 @Override
51 public void removeRepository(URI uri, boolean uninstall) throws Exception {
52
53 }
54
55 @Override
56 public void restoreRepository(URI uri) throws Exception {
57
58 }
59
60 @Override
61 public Repository[] listRepositories() {
62 return new Repository[0];
63 }
64
65 @Override
66 public Repository getRepository(String repoName) {
67 return null;
68 }
69
70 @Override
Thomas Vachuska5630c612015-03-24 12:24:12 -070071 public Repository getRepository(URI uri) {
72 return null;
73 }
74
75 @Override
76 public String getRepositoryName(URI uri) {
77 return null;
78 }
79
80 @Override
Thomas Vachuska02aeb032015-01-06 22:36:30 -080081 public void installFeature(String name) throws Exception {
82
83 }
84
85 @Override
86 public void installFeature(String name, EnumSet<Option> options) throws Exception {
87
88 }
89
90 @Override
91 public void installFeature(String name, String version) throws Exception {
92
93 }
94
95 @Override
96 public void installFeature(String name, String version, EnumSet<Option> options) throws Exception {
97
98 }
99
100 @Override
101 public void installFeature(Feature f, EnumSet<Option> options) throws Exception {
102
103 }
104
105 @Override
106 public void installFeatures(Set<Feature> features, EnumSet<Option> options) throws Exception {
107
108 }
109
110 @Override
111 public void uninstallFeature(String name, EnumSet<Option> options) throws Exception {
112
113 }
114
115 @Override
116 public void uninstallFeature(String name) throws Exception {
117
118 }
119
120 @Override
121 public void uninstallFeature(String name, String version, EnumSet<Option> options) throws Exception {
122
123 }
124
125 @Override
126 public void uninstallFeature(String name, String version) throws Exception {
127
128 }
129
130 @Override
131 public Feature[] listFeatures() throws Exception {
132 return new Feature[0];
133 }
134
135 @Override
136 public Feature[] listInstalledFeatures() {
137 return new Feature[0];
138 }
139
140 @Override
141 public boolean isInstalled(Feature f) {
142 return false;
143 }
144
145 @Override
Thomas Vachuska5630c612015-03-24 12:24:12 -0700146 public Feature[] getFeatures(String name, String version) throws Exception {
147 return new Feature[0];
148 }
149
150 @Override
151 public Feature[] getFeatures(String name) throws Exception {
152 return new Feature[0];
153 }
154
155 @Override
Thomas Vachuska02aeb032015-01-06 22:36:30 -0800156 public Feature getFeature(String name, String version) throws Exception {
157 return null;
158 }
159
160 @Override
161 public Feature getFeature(String name) throws Exception {
162 return null;
163 }
164
165 @Override
166 public void refreshRepository(URI uri) throws Exception {
Jian Li11599162016-01-15 15:46:16 -0800167 }
Thomas Vachuska02aeb032015-01-06 22:36:30 -0800168
Jian Li11599162016-01-15 15:46:16 -0800169 @Override
170 public void registerListener(FeaturesListener featuresListener) {
171 }
172
173 @Override
174 public void unregisterListener(FeaturesListener featuresListener) {
Thomas Vachuska02aeb032015-01-06 22:36:30 -0800175 }
176}