lburgazzoli commented on a change in pull request #5372:
URL: https://github.com/apache/camel/pull/5372#discussion_r613825927



##########
File path: 
dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoader.java
##########
@@ -57,39 +61,46 @@ protected void doBuild() throws Exception {
         super.doBuild();
 
         this.settings = LoadSettings.builder().build();
-        this.constructor = new YamlDeserializationContext(settings);
-        this.constructor.setCamelContext(getCamelContext());
-        this.constructor.addResolvers(new CustomResolver());
-        this.constructor.addResolvers(new ModelDeserializersResolver());
-        this.constructor.addResolvers(new 
EndpointProducerDeserializersResolver());
+        this.deserializationContext = new YamlDeserializationContext(settings);
+        this.deserializationContext.setCamelContext(getCamelContext());
+        this.deserializationContext.addResolvers(new CustomResolver());
+        this.deserializationContext.addResolvers(new 
ModelDeserializersResolver());
+        this.deserializationContext.addResolvers(new 
EndpointProducerDeserializersResolver());
+
+        final Map<String, String> options = 
getCamelContext().getGlobalOptions();

Review comment:
       ah yes, good point, so I'll move that to doStart so it will be always a 
runtime thing




-- 
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:
us...@infra.apache.org


Reply via email to