Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15673

endpoint-dsl - Reference bean by #type prefix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • camel-core
    • 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

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: