You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/09/09 10:25:19 UTC
(camel) 10/14: CAMEL-21183: BrowseEndpoint should have limit/filter to optimize returned data from component implementations
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch brow
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e33b3f304087d57c160a3534b024012233da5069
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Sep 9 07:37:53 2024 +0200
CAMEL-21183: BrowseEndpoint should have limit/filter to optimize returned data from component implementations
---
.../main/java/org/apache/camel/tooling/model/ComponentModel.java | 9 +++++++++
.../camel/maven/packaging/EndpointSchemaGeneratorMojo.java | 1 +
2 files changed, 10 insertions(+)
diff --git a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/ComponentModel.java b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/ComponentModel.java
index 423d9c91375..561849cf390 100644
--- a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/ComponentModel.java
+++ b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/ComponentModel.java
@@ -35,6 +35,7 @@ public class ComponentModel extends ArtifactModel<ComponentModel.ComponentOption
protected boolean consumerOnly;
protected boolean producerOnly;
protected boolean lenientProperties;
+ protected boolean browsable;
protected boolean remote;
protected String verifiers;
protected final List<EndpointOptionModel> endpointOptions = new ArrayList<>();
@@ -138,6 +139,14 @@ public class ComponentModel extends ArtifactModel<ComponentModel.ComponentOption
this.lenientProperties = lenientProperties;
}
+ public boolean isBrowsable() {
+ return browsable;
+ }
+
+ public void setBrowsable(boolean browsable) {
+ this.browsable = browsable;
+ }
+
public boolean isRemote() {
return remote;
}
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
index 055e5943f16..8f3d282290a 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
@@ -818,6 +818,7 @@ public class EndpointSchemaGeneratorMojo extends AbstractGeneratorMojo {
model.setRemote(uriEndpoint.remote());
model.setAsync(loadClass("org.apache.camel.AsyncEndpoint").isAssignableFrom(endpointClassElement));
model.setApi(loadClass("org.apache.camel.ApiEndpoint").isAssignableFrom(endpointClassElement));
+ model.setBrowsable(loadClass("org.apache.camel.spi.BrowsableEndpoint").isAssignableFrom(endpointClassElement));
model.setApiSyntax(uriEndpoint.apiSyntax());
// what is the first version this component was added to Apache Camel