Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01B7AD300 for ; Fri, 14 Dec 2012 17:52:39 +0000 (UTC) Received: (qmail 98997 invoked by uid 500); 14 Dec 2012 17:52:38 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 98970 invoked by uid 500); 14 Dec 2012 17:52:38 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 98962 invoked by uid 99); 14 Dec 2012 17:52:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2012 17:52:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2012 17:52:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7FC0923889BF; Fri, 14 Dec 2012 17:52:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1421997 - /camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java Date: Fri, 14 Dec 2012 17:52:15 -0000 To: commits@camel.apache.org From: cmueller@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121214175215.7FC0923889BF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cmueller Date: Fri Dec 14 17:52:13 2012 New Revision: 1421997 URL: http://svn.apache.org/viewvc?rev=1421997&view=rev Log: CAMEL-5844: Camel Tracer not showing some EIP names Modified: camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java Modified: camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java?rev=1421997&r1=1421996&r2=1421997&view=diff ============================================================================== --- camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java (original) +++ camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java Fri Dec 14 17:52:13 2012 @@ -19,14 +19,14 @@ package org.apache.camel.processor; import java.util.List; import org.apache.camel.Processor; +import org.apache.camel.Traceable; import org.apache.camel.util.ServiceHelper; /** * A processor which ensures wrapping processors is having lifecycle handled. - * - * @version */ -public class WrapProcessor extends DelegateAsyncProcessor { +public class WrapProcessor extends DelegateAsyncProcessor implements Traceable { + private final Processor wrapped; public WrapProcessor(Processor processor, Processor wrapped) { @@ -38,6 +38,10 @@ public class WrapProcessor extends Deleg public String toString() { return "Wrap[" + wrapped + "] -> " + processor; } + + public String getTraceLabel() { + return "wrap[" + wrapped + "]"; + } @Override public List next() {