This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 6c4c563 [CAMEL-15314] Make dsl static builders public (#4046)
6c4c563 is described below
commit 6c4c56337d1569daa1100387dac4fd7d3a03ee44
Author: Ahmed <[email protected]>
AuthorDate: Sat Jul 25 16:25:17 2020 +0200
[CAMEL-15314] Make dsl static builders public (#4046)
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);