Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 84860 invoked from network); 25 May 2009 08:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 May 2009 08:26:11 -0000 Received: (qmail 83696 invoked by uid 500); 25 May 2009 08:26:24 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 83652 invoked by uid 500); 25 May 2009 08:26:24 -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 83643 invoked by uid 99); 25 May 2009 08:26:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 08:26:24 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 08:26:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 053EE238888E; Mon, 25 May 2009 08:26:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r778349 - in /camel/trunk/camel-core/src/main/java/org/apache/camel: Processor.java Producer.java Date: Mon, 25 May 2009 08:25:59 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090525082600.053EE238888E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davsclaus Date: Mon May 25 08:25:59 2009 New Revision: 778349 URL: http://svn.apache.org/viewvc?rev=778349&view=rev Log: polished javadoc Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/Processor.java camel/trunk/camel-core/src/main/java/org/apache/camel/Producer.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/Processor.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/Processor.java?rev=778349&r1=778348&r2=778349&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/Processor.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/Processor.java Mon May 25 08:25:59 2009 @@ -17,12 +17,10 @@ package org.apache.camel; /** - * A processor is - * used to implement the - * - * Event Driven Consumer and - * - * Message Translator patterns and to process message exchanges. + * A processor is used to implement the + * Event Driven Consumer + * and Message Translator + * patterns and to process message exchanges. * * @version $Revision$ */ @@ -31,6 +29,7 @@ /** * Processes the message exchange * + * @param exchange the message exchange * @throws Exception if an internal processing error has occurred. */ void process(Exchange exchange) throws Exception; Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/Producer.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/Producer.java?rev=778349&r1=778348&r2=778349&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/Producer.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/Producer.java Mon May 25 08:25:59 2009 @@ -24,6 +24,11 @@ */ public interface Producer extends Processor, Service { + /** + * Gets the endpoint this producer sends to. + * + * @return the endpoint + */ Endpoint getEndpoint(); /** @@ -36,6 +41,7 @@ /** * Creates a new exchange of the given pattern to send to this endpoint * + * @param pattern the exchange pattern * @return a newly created exchange */ Exchange createExchange(ExchangePattern pattern); @@ -43,6 +49,9 @@ /** * Creates a new exchange for communicating with this exchange using the * given exchange to pre-populate the values of the headers and messages + * + * @param exchange the existing exchange + * @return the created exchange */ Exchange createExchange(Exchange exchange); }