You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2008/11/17 08:21:14 UTC

svn commit: r718182 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java

Author: davsclaus
Date: Sun Nov 16 23:21:14 2008
New Revision: 718182

URL: http://svn.apache.org/viewvc?rev=718182&view=rev
Log:
CAMEL-1087: polished javadoc

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=718182&r1=718181&r2=718182&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java Sun Nov 16 23:21:14 2008
@@ -115,7 +115,7 @@
     // -------------------------------------------------------------------------
 
     /**
-     * Sends the exchange to the given endpoint URI
+     * Sends the exchange to the given endpoint
      */
     public Type to(String uri) {
         addOutput(new ToType(uri));
@@ -151,7 +151,7 @@
     }
 
     /**
-     * Sends the exchange to a list of endpoint
+     * Sends the exchange to a list of endpoints
      */
     public Type to(Collection<Endpoint> endpoints) {
         for (Endpoint endpoint : endpoints) {
@@ -290,6 +290,7 @@
      * Creates an {@link org.apache.camel.processor.idempotent.IdempotentConsumer}
      * to avoid duplicate messages
      *
+     * @param messageIdRepository the repository to use for duplicate chedck
      * @return the builder used to create the expression
      */
     public ExpressionClause<IdempotentConsumerType> idempotentConsumer(MessageIdRepository messageIdRepository) {
@@ -300,7 +301,7 @@
     }
 
     /**
-     * Creates a predicate expression which only if it is true then the
+     * Creates a predicate expression which only if it is <tt>true</tt> then the
      * exchange is forwarded to the destination
      *
      * @return the clause used to create the filter expression
@@ -312,10 +313,11 @@
     }
 
     /**
-     * Creates a predicate which is applied and only if it is true then the
+     * Creates a predicate which is applied and only if it is <tt>true</tt> then the
      * exchange is forwarded to the destination
      *
-     * @return the builder for a predicate
+     * @param predicate  predicate to use
+     * @return the builder 
      */
     public FilterType filter(Predicate predicate) {
         FilterType filter = new FilterType(predicate);
@@ -323,6 +325,13 @@
         return filter;
     }
 
+    /**
+     * Creates a predicate expression which only if it is <tt>true</tt> then the
+     * exchange is forwarded to the destination
+     *
+     * @param expression  the predicate expression to use
+     * @return the builder
+     */
     public FilterType filter(ExpressionType expression) {
         FilterType filter = getNodeFactory().createFilter();
         filter.setExpression(expression);
@@ -330,10 +339,23 @@
         return filter;
     }
 
+    /**
+     * Creates a predicate language expression which only if it is <tt>true</tt> then the
+     * exchange is forwarded to the destination
+     *
+     * @param language     language for expression
+     * @param expression   the expression
+     * @return the builder
+     */
     public FilterType filter(String language, String expression) {
         return filter(new LanguageExpression(language, expression));
     }
 
+    /**
+     * Creates a loadbalance
+     *
+     * @return  the builder
+     */
     public LoadBalanceType loadBalance() {
         LoadBalanceType answer = new LoadBalanceType();
         addOutput(answer);
@@ -950,6 +972,13 @@
         return ExpressionClause.createAndSetExpression(loop);
     }
 
+    /**
+     * Creates a loop which must evaluate to an integer that determines
+     * how many times the exchange should be sent down the rest of the route.
+     *
+     * @param expression the loop expression
+     * @return the builder
+     */
     public LoopType loop(Expression expression) {
         LoopType loop = getNodeFactory().createLoop();
         loop.setExpression(expression);
@@ -957,6 +986,13 @@
         return loop;
     }
 
+    /**
+     * Creates a loop which must evaluate to an integer that determines
+     * how many times the exchange should be sent down the rest of the route.
+     *
+     * @param count  the number of times
+     * @return the builder
+     */
     public LoopType loop(int count) {
         LoopType loop = getNodeFactory().createLoop();
         loop.setExpression(new ConstantExpression(Integer.toString(count)));
@@ -989,7 +1025,6 @@
      */
     public Type intercept(DelegateProcessor interceptor) {
         intercept(new InterceptorRef(interceptor));
-        //lastInterceptor = interceptor;
         return (Type) this;
     }