[WIP] apps CLI changes for karaf upgrade
Change-Id: I283efc39c7d4f4b31344f1d2d0cdd2b98a60932d
diff --git a/core/net/src/test/java/org/onosproject/app/impl/FeaturesServiceAdapter.java b/core/net/src/test/java/org/onosproject/app/impl/FeaturesServiceAdapter.java
index bdb28be..165d4e4 100644
--- a/core/net/src/test/java/org/onosproject/app/impl/FeaturesServiceAdapter.java
+++ b/core/net/src/test/java/org/onosproject/app/impl/FeaturesServiceAdapter.java
@@ -15,12 +15,15 @@
*/
package org.onosproject.app.impl;
+import org.apache.karaf.features.DeploymentListener;
import org.apache.karaf.features.Feature;
+import org.apache.karaf.features.FeatureState;
import org.apache.karaf.features.FeaturesListener;
import org.apache.karaf.features.Repository;
import java.net.URI;
import java.util.EnumSet;
+import java.util.Map;
import java.util.Set;
/**
@@ -28,6 +31,118 @@
*/
public class FeaturesServiceAdapter implements org.apache.karaf.features.FeaturesService {
@Override
+ public boolean isRepositoryUriBlacklisted(URI uri) {
+ return false;
+ }
+
+ @Override
+ public Repository[] listRequiredRepositories() throws Exception {
+ return new Repository[0];
+ }
+
+ @Override
+ public void setResolutionOutputFile(String s) {
+
+ }
+
+ @Override
+ public void installFeatures(Set<String> set, String s, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void addRequirements(Map<String, Set<String>> map, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void uninstallFeatures(Set<String> set, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void uninstallFeatures(Set<String> set, String s, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void removeRequirements(Map<String, Set<String>> map, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void updateFeaturesState(Map<String, Map<String, FeatureState>> map,
+ EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public void updateReposAndRequirements(Set<URI> set,
+ Map<String, Set<String>> map, EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
+ public Repository createRepository(URI uri) throws Exception {
+ return null;
+ }
+
+ @Override
+ public Feature[] listRequiredFeatures() throws Exception {
+ return new Feature[0];
+ }
+
+ @Override
+ public Map<String, Set<String>> listRequirements() {
+ return null;
+ }
+
+ @Override
+ public boolean isRequired(Feature feature) {
+ return false;
+ }
+
+ @Override
+ public void refreshRepositories(Set<URI> set) throws Exception {
+
+ }
+
+ @Override
+ public URI getRepositoryUriFor(String s, String s1) {
+ return null;
+ }
+
+ @Override
+ public String[] getRepositoryNames() {
+ return new String[0];
+ }
+
+ @Override
+ public void registerListener(DeploymentListener deploymentListener) {
+
+ }
+
+ @Override
+ public void unregisterListener(DeploymentListener deploymentListener) {
+
+ }
+
+ @Override
+ public FeatureState getState(String s) {
+ return null;
+ }
+
+ @Override
+ public String getFeatureXml(Feature feature) {
+ return null;
+ }
+
+ @Override
+ public void refreshFeatures(EnumSet<Option> enumSet) throws Exception {
+
+ }
+
+ @Override
public void validateRepository(URI uri) throws Exception {
}
@@ -103,7 +218,7 @@
}
@Override
- public void installFeatures(Set<Feature> features, EnumSet<Option> options) throws Exception {
+ public void installFeatures(Set<String> features, EnumSet<Option> options) throws Exception {
}