activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dr.jeff" <>
Subject [camel] spring container
Date Sat, 28 Apr 2007 18:48:13 GMT

Is this logic in org.apache.camel.spring.RouteBuilderFinder correct?

     * Lets ignore beans that are not explicitly configured in the
    protected boolean shouldIgnoreBean(Class type) {
        Map beans = applicationContext.getBeansOfType(type, true, true);
        if (beans == null || beans.isEmpty()) {
            return false;
        // TODO apply some filter?
        return true;

If the application context finds beans of the requested type (which it does
if they are defined in the xml configuration) then the method returns true,
meaning "yes, should ignore". 
But isn't that just the opposite of what is desired? Or am I missing the
whole point here?
View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message