Claus Ibsen created CAMEL-15673:
-----------------------------------

             Summary: 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
             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)

Reply via email to