activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r523756 - in /activemq/camel/trunk/camel-core/src: main/java/org/apache/camel/ main/java/org/apache/camel/impl/converter/ main/java/org/apache/camel/util/ test/resources/
Date Thu, 29 Mar 2007 16:05:57 GMT
Author: jstrachan
Date: Thu Mar 29 09:05:51 2007
New Revision: 523756

URL: http://svn.apache.org/viewvc?view=rev&rev=523756
Log:
tidied up the javadoc

Added:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
  (with props)
Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Converter.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/TypeConverter.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
    activemq/camel/trunk/camel-core/src/test/resources/log4j.properties

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Converter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Converter.java?view=diff&rev=523756&r1=523755&r2=523756
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Converter.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Converter.java Thu Mar
29 09:05:51 2007
@@ -7,6 +7,7 @@
 
 /**
  * An annotation used to mark classes and methods to indicate code capable of converting
from a type to another type
+ * which are then auto-discovered using the <a href="http://activemq.apache.org/camel/type-converter.html">Type
Conversion Support</a>
  *
  * @version $Revision$
  */

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?view=diff&rev=523756&r1=523755&r2=523756
==============================================================================
--- 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
Mar 29 09:05:51 2007
@@ -18,7 +18,8 @@
 package org.apache.camel;
 
 /**
- * A pluggable strategy to be able to convert objects to different types such as from DOM
to JAXB2 or String to DOM etc
+ * A pluggable strategy to be able to convert objects <a href="http://activemq.apache.org/camel/type-converter.html">to
different types</a>
+ *  such as to and from String, InputStream/OutputStream, Reader/Writer, Document, byte[],
ByteBuffer etc
  *
  * @version $Revision$
  */

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java?view=diff&rev=523756&r1=523755&r2=523756
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
Thu Mar 29 09:05:51 2007
@@ -19,6 +19,7 @@
 
 import org.apache.camel.Converter;
 import org.apache.camel.util.ResolverUtil;
+import org.apache.camel.util.ObjectHelper;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -50,6 +51,9 @@
         resolver.findAnnotated(Converter.class, packageNames);
         Set<Class> classes = resolver.getClasses();
         for (Class type : classes) {
+            if (log.isDebugEnabled()) {
+                log.debug("Loading converter class: " + ObjectHelper.name(type));
+            }
             loadConverterMethods(registry, type);
         }
     }

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html?view=auto&rev=523756
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
(added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
Thu Mar 29 09:05:51 2007
@@ -0,0 +1,25 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+   
+    http://www.apache.org/licenses/LICENSE-2.0
+   
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<html>
+<head>
+</head>
+<body>
+
+Default implementation classes the <a href="http://activemq.apache.org/camel/type-converter.html">Type
Conversion Strategies</a>
+
+</body>
+</html>

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/package.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?view=diff&rev=523756&r1=523755&r2=523756
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Thu Mar 29 09:05:51 2007
@@ -130,4 +130,11 @@
             return defaultValue;
         }
     }
+
+    /**
+     * Returns the type name of the given type or null if the type variable is null
+     */
+    public static String name(Class type) {
+        return type != null ? type.getName() : null;
+    }
 }

Modified: activemq/camel/trunk/camel-core/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/resources/log4j.properties?view=diff&rev=523756&r1=523755&r2=523756
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/resources/log4j.properties (original)
+++ activemq/camel/trunk/camel-core/src/test/resources/log4j.properties Thu Mar 29 09:05:51
2007
@@ -18,10 +18,12 @@
 #
 # The logging properties used for eclipse testing, We want to see debug output on the console.
 #
-log4j.rootLogger=DEBUG, out
+log4j.rootLogger=INFO, out
 
 #log4j.logger.org.apache.activemq=DEBUG
+
 log4j.logger.org.apache.camel=DEBUG
+log4j.logger.org.apache.camel.impl.converter=INFO
 
 # CONSOLE appender not used by default
 log4j.appender.out=org.apache.log4j.ConsoleAppender



Mime
View raw message