Petr Juza created CAMEL-7657:
--------------------------------
Summary: 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
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)