[
https://issues.apache.org/jira/browse/CAMEL-16081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272609#comment-17272609
]
Claus Ibsen commented on CAMEL-16081:
-------------------------------------
Ah okay you can turn this off with, which is potentially better as its then
disabled generally
camel.main.bean-post-processor-enabled = false
> camel-main - Defining beans creating new instances should avoid reflection
> --------------------------------------------------------------------------
>
> Key: CAMEL-16081
> URL: https://issues.apache.org/jira/browse/CAMEL-16081
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.8.0
>
>
> BaseMainSupport at
> Object bean = PropertyBindingSupport.resolveBean(camelContext, name, value);
> This is when you define a bean
> # # 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).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)