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:33:00 UTC

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

    [ https://issues.apache.org/jira/browse/CAMEL-19564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738991#comment-17738991 ] 

Grzegorz Grzybek commented on CAMEL-19564:
------------------------------------------

Fixed here: https://github.com/apache/camel/commit/0be0a73e4f030eb11f060deea1e0027726c360e3

> 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
>            Priority: Major
>             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)