You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2023/01/11 10:18:19 UTC

[GitHub] [camel] JiriOndrusek commented on pull request #9042: CAMEL-18878 Autowiring on endpoint works even if is disabled on component

JiriOndrusek commented on PR #9042:
URL: https://github.com/apache/camel/pull/9042#issuecomment-1378524986

   @davsclaus  I found the text - https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/DefaultEndpoint.java#L59
   
   which says that component has higheh priority with aurowiredEnabled
   
   "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired)"
                               + " by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component."
                               + " This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc."
                               + " Important: If a component has the same option defined on both component and endpoint level, then disabling"
                               + " autowiring on endpoint level would not affect that the component will still be autowired, and therefore the endpoint"
                               + " will be configured with option from the component level. In other words turning off autowiring would then require to turn it off on the component level.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org