You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2023/06/30 09:17:00 UTC

[jira] [Created] (CAMEL-19564) xml-io-dsl: Allow routes to use beans loaded directly from source

Grzegorz Grzybek created CAMEL-19564:
----------------------------------------

             Summary: xml-io-dsl: Allow routes to use beans loaded directly from source
                 Key: CAMEL-19564
                 URL: https://issues.apache.org/jira/browse/CAMEL-19564
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Grzegorz Grzybek
            Assignee: Grzegorz Grzybek
             Fix For: 4.0.0


With CAMEL-18189 we can now use {{<bean>}} elements in XMLs with top-level {{<camel>}} (or {{<beans>}}) elements.

However it is not possible to load classes which come from {{*.java}} files passed to {{camel run}} because xml-io-dsl registers beans eagerly in {{org.apache.camel.spi.RoutesBuilderLoader#preParseRoute()}}.

I have a PR which delays instantiation of such beans till when they're available.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)