camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-6057) Camel Spring registry does not look into parent contexts
Date Sat, 09 Feb 2013 15:01:14 GMT

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

David J. M. Karlsen edited comment on CAMEL-6057 at 2/9/13 2:59 PM:
--------------------------------------------------------------------

The typical usecase is to have the servicelayer and infrastructure beans in a shared parent
context, and having the web/view stuff (e.g. controllers, viewresolvers) as child contexts
of this (in a WebApplicationContext).
                
      was (Author: davidkarlsen@gmail.com):
    The typical usecase is to have the servicelayer and infrastructure beans in a shared parent
context, and having the web/view stuff (e.g. controllers, viewresolvers) as child contexts
of this.
                  
> 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: Improvement
>          Components: camel-spring
>    Affects Versions: 2.10.3
>            Reporter: Vitalii Tymchyshyn
>            Priority: Minor
>             Fix For: Future
>
>
> 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

Mime
View raw message