Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 94479 invoked from network); 28 Apr 2007 18:48:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2007 18:48:35 -0000 Received: (qmail 98179 invoked by uid 500); 28 Apr 2007 18:48:41 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 98150 invoked by uid 500); 28 Apr 2007 18:48:41 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 98141 invoked by uid 99); 28 Apr 2007 18:48:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 11:48:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 11:48:34 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Hhrxt-0005vp-MP for dev@activemq.apache.org; Sat, 28 Apr 2007 11:48:13 -0700 Message-ID: <10235603.post@talk.nabble.com> Date: Sat, 28 Apr 2007 11:48:13 -0700 (PDT) From: "dr.jeff" To: dev@activemq.apache.org Subject: [camel] spring container MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jlansing@systechnologies.com X-Virus-Checked: Checked by ClamAV on apache.org Is this logic in org.apache.camel.spring.RouteBuilderFinder correct? /** * Lets ignore beans that are not explicitly configured in the spring.xml */ 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: http://www.nabble.com/-camel--spring-container-tf3663132s2354.html#a10235603 Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.