Skip to content

Commit

Permalink
Remove Capability capability from catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Oct 3, 2024
1 parent ae96bd7 commit 1cbb270
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.TreeMap;

import org.apache.camel.catalog.CamelCatalog;
import org.apache.camel.catalog.RuntimeProvider;
Expand All @@ -42,7 +39,6 @@ public class QuarkusRuntimeProvider implements RuntimeProvider {
private static final String TRANSFORMER_DIR = "org/apache/camel/catalog/quarkus/transformers";
private static final String OTHER_DIR = "org/apache/camel/catalog/quarkus/others";
private static final String BEANS_DIR = "org/apache/camel/catalog/quarkus/beans";
private static final String CAPABILITIES_CATALOG = "org/apache/camel/catalog/quarkus/capabilities.properties";
private static final String COMPONENTS_CATALOG = "org/apache/camel/catalog/quarkus/components.properties";
private static final String DEV_CONSOLE_CATALOG = "org/apache/camel/catalog/quarkus/dev-consoles.properties";
private static final String DATA_FORMATS_CATALOG = "org/apache/camel/catalog/quarkus/dataformats.properties";
Expand Down Expand Up @@ -210,16 +206,4 @@ public List<String> findBeansNames() {
}
return names;
}

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Map<String, String> findCapabilities() {
final Properties properties = new Properties();
try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(CAPABILITIES_CATALOG)) {
properties.load(is);
} catch (IOException e) {
// ignore
}
return new TreeMap<>((Map<String, String>) (Map) properties);
}
}

0 comments on commit 1cbb270

Please sign in to comment.