[
https://issues.apache.org/jira/browse/CAMEL-7657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-7657:
-------------------------------
Fix Version/s: 2.14.0
2.13.3
> different results of lookup methods in SpringRouteBuilder
> ---------------------------------------------------------
>
> Key: CAMEL-7657
> URL: https://issues.apache.org/jira/browse/CAMEL-7657
> Project: Camel
> Issue Type: Bug
> Components: camel-spring
> Affects Versions: 2.13.2
> Reporter: Petr Juza
> Priority: Minor
> Fix For: 2.13.3, 2.14.0
>
>
> There are two lookup methods in SpringRouteBuilder:
> - lookup(java.lang.String beanName, java.lang.Class<T> type) calls
> getBean(beanName, type) from ApplicationContext
>
> - lookup(java.lang.Class<T> type) calls internally getBeanNamesForType
> (http://docs.spring.io/spring/docs/3.2.9.RELEASE/javadoc-api/org/springframework/beans/factory/ListableBeanFactory.html#getBeanNamesForType(java.lang.Class)
> ) and this method does not consider any hierarchy this factory may
> participate in.
> Two same methods can return different results when using Spring context
> hierarchy.
--
This message was sent by Atlassian JIRA
(v6.2#6252)