You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/02/09 13:19:13 UTC

[jira] [Commented] (CAMEL-6057) Camel Spring registry does not look into parent contexts

    [ https://issues.apache.org/jira/browse/CAMEL-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575149#comment-13575149 ] 

Claus Ibsen commented on CAMEL-6057:
------------------------------------

When do you use parent context in Spring? Do you have use-cases using that?
                
> Camel Spring registry does not look into parent contexts
> --------------------------------------------------------
>
>                 Key: CAMEL-6057
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6057
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 2.10.3
>            Reporter: Vitalii Tymchyshyn
>
> trunk components/camel-spring/src/main/java/org/apache/camel/spring/spi/ApplicationContextRegistry.java
> has next method:
>    @Override
>     public <T> Map<String, T> findByTypeWithName(Class<T> type) {
>         return applicationContext.getBeansOfType(type);
>     }
> but this method does not look into application context parent contexts.
> org.springframework.beans.factory.BeanFactoryUtils#beansOfTypeIncludingAncestors should be used instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira