This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-3.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.4.x by this push:
     new 19318d8  [CAMEL-15314] Make dsl static builders public (#4047)
19318d8 is described below

commit 19318d8823e3a04ae47be4f129ab55960c5e94b2
Author: Ahmed <[email protected]>
AuthorDate: Sat Jul 25 17:48:52 2020 +0200

    [CAMEL-15314] Make dsl static builders public (#4047)
    
    Call setPublic on methods used for the static builders in
    StaticEndpointBuilders (camel-endpointdsl)
---
 .../java/org/apache/camel/maven/packaging/EndpointDslMojo.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
index 282861f..1d7483d 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
@@ -528,7 +528,7 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
 
             // copy method for the static builders (which allows to use the 
endpoint-dsl from outside EndpointRouteBuilder)
             method = method.copy();
-            method.setStatic();
+            method.setPublic().setStatic();
             method.setReturnType(builderClass.getCanonicalName().replace('$', 
'.'));
             method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), 
"endpointBuilder", "\"" + model.getScheme() + "\", path");
             staticBuilders.add(method);
@@ -549,7 +549,7 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
 
             // copy method for the static builders (which allows to use the 
endpoint-dsl from outside EndpointRouteBuilder)
             method = method.copy();
-            method.setStatic();
+            method.setPublic().setStatic();
             method.setReturnType(builderClass.getCanonicalName().replace('$', 
'.'));
             method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), 
"endpointBuilder", "componentName, path");
             staticBuilders.add(method);
@@ -576,7 +576,7 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
                 if (firstAlias) {
                     // copy method for the static builders (which allows to 
use the endpoint-dsl from outside EndpointRouteBuilder)
                     method = method.copy();
-                    method.setStatic();
+                    method.setPublic().setStatic();
                     
method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
                     method.setBodyF("return %s.%s(%s);", 
javaClass.getCanonicalName(), "endpointBuilder", "\"" + 
componentModel.getScheme() + "\", path");
                     staticBuilders.add(method);
@@ -603,7 +603,7 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
                 if (firstAlias) {
                     // copy method for the static builders (which allows to 
use the endpoint-dsl from outside EndpointRouteBuilder)
                     method = method.copy();
-                    method.setStatic();
+                    method.setPublic().setStatic();
                     
method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
                     method.setBodyF("return %s.%s(%s);", 
javaClass.getCanonicalName(), "endpointBuilder", "componentName, path");
                     staticBuilders.add(method);

Reply via email to