You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2008/09/25 17:29:45 UTC

svn commit: r699003 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java

Author: hadrian
Date: Thu Sep 25 08:29:45 2008
New Revision: 699003

URL: http://svn.apache.org/viewvc?rev=699003&view=rev
Log:
CAMEL-84.  Fix javadoc.

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

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java?rev=699003&r1=699002&r2=699003&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java Thu Sep 25 08:29:45 2008
@@ -16,6 +16,8 @@
  */
 package org.apache.camel;
 
+import org.apache.abdera.parser.ParseException;
+
 /**
  * A pluggable strategy to be able to convert objects <a
  * href="http://activemq.apache.org/camel/type-converter.html">to different
@@ -31,7 +33,8 @@
      * 
      * @param type the requested type
      * @param value the value to be converted
-     * @return the converted value or <tt>null</tt> if it can not be converted
+     * @return the converted value
+     * @throws {@link NoTypeConversionAvailableException} if conversion not possible
      */
     <T> T convertTo(Class<T> type, Object value);
 
@@ -44,7 +47,8 @@
      * @param type the requested type
      * @param exchange the current exchange
      * @param value the value to be converted
-     * @return the converted value or <tt>null</tt> if it can not be converted
+     * @return the converted value
+     * @throws {@link NoTypeConversionAvailableException} if conversion not possible
      */
     <T> T convertTo(Class<T> type, Exchange exchange, Object value);
 }