You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/12 11:55:00 UTC

[jira] [Assigned] (CAMEL-15673) endpoint-dsl - Reference bean by #type prefix

     [ https://issues.apache.org/jira/browse/CAMEL-15673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-15673:
-----------------------------------

    Assignee: Claus Ibsen

> endpoint-dsl - Reference bean by #type prefix
> ---------------------------------------------
>
>                 Key: CAMEL-15673
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15673
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.6.0
>
>
> It should be possible to refer to bean by the #type: prefix in all places of the endpoint-dsl. There are some components which does a bit of special handling (due to before property binding support was as powerful as today - it supports #type etc).
> For example camel-sql, you should be able to do
>                 SqlEndpointBuilderFactory.SqlEndpointBuilder builder
>                         = sql("SELECT * FROM FOO").dataSource("#type:javax.sql.DataSource");
> To grab the data source via the type class instead of knowing the bean id etc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)