WillemJiang commented on a change in pull request #138: #137 Add the error log
when setting component property failed
URL: https://github.com/apache/camel-k-runtime/pull/138#discussion_r326982183
##########
File path:
camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentsConfiguration.groovy
##########
@@ -48,10 +49,10 @@ class ComponentsConfiguration {
}
if (type.isAssignableFrom(component.class)) {
- callable.resolveStrategy = Closure.DELEGATE_FIRST
+ // Just make sure the closure context is belong to component
+ callable.resolveStrategy = Closure.DELEGATE_ONLY
Review comment:
If I set the Closure.DELEGATE_FIRST, I cannot throw the exception from
propertyMissing method of ComponentsConfiguration.groovy. Is there any other
way to address this issue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services