Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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.
Attachments
Issue Links
- relates to
-
CAMEL-15622 endpoint-dsl - Bean name evaluated as string in sql component
- Resolved