camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petr Juza (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-7657) different results of lookup methods in SpringRouteBuilder
Date Mon, 04 Aug 2014 08:18:11 GMT
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)

Mime
View raw message