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

camel-main - Defining beans creating new instances should avoid reflection

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 3.8.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      BaseMainSupport at

      Object bean = PropertyBindingSupport.resolveBean(camelContext, name, value);

      This is when you define a bean

      1. # configure beans
        camel.beans.myBean = #class:org.apache.camel.example.MyBean
        camel.beans.myBean.hi = Hello

      Then a new instance is created but it does post process that does reflection injection. That should not happen as the bean is configured afterwards via configurer (if possible).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: