Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 95892 invoked from network); 11 Jul 2008 04:28:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 04:28:51 -0000 Received: (qmail 67662 invoked by uid 500); 11 Jul 2008 04:28:52 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 67587 invoked by uid 500); 11 Jul 2008 04:28:51 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 67576 invoked by uid 99); 11 Jul 2008 04:28:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 21:28:51 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 04:28:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50844234C162 for ; Thu, 10 Jul 2008 21:28:00 -0700 (PDT) Message-ID: <644843216.1215750480314.JavaMail.jira@brutus> Date: Thu, 10 Jul 2008 21:28:00 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Closed: (CAMEL-267) Predicate cannot be used as BeanProcessor In-Reply-To: <29516067.1197913347950.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen closed CAMEL-267. ----------------------------- > Predicate cannot be used as BeanProcessor > ----------------------------------------- > > Key: CAMEL-267 > URL: https://issues.apache.org/activemq/browse/CAMEL-267 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 1.3.0, 1.4.0 > Reporter: Aaron Crickenberger > Assignee: James Strachan > Priority: Minor > Fix For: 1.4.0 > > Attachments: PredicateAsBeanTest.java > > > The current Bean Expression mechanism doesn't support the use of a Predicate as the Bean/POJO. The problem is that BeanInfo tries to use matches(Object) instead of matches(Exchange). If you use the extra "methodName" hint, this happens because BeanInfo uses operations.get(name), which will only return the most recently introspected method (potentially the Object one.) If you don't, then BeanInfo will try to find a method based on the inbound message body type, ignoring methods that take Exchange as a parameter. > This may too esoteric to bother working around? It's relatively easy to workaround for the common case (match the incoming body), but it's still a little unexpected. The only thing I can see this preventing is the use of Predicates that are looking at multiple messages at once (eg: comparing delta between in & out messages in an exchange.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.