You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/03/05 16:41:41 UTC
svn commit: r633880 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java
Author: jstrachan
Date: Wed Mar 5 07:41:40 2008
New Revision: 633880
URL: http://svn.apache.org/viewvc?rev=633880&view=rev
Log:
added a better warning message if someone tries to use ArtixDS data formats which are not on the classpath
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java?rev=633880&r1=633879&r2=633880&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/dataformat/ArtixDSDataFormat.java Wed Mar 5 07:41:40 2008
@@ -24,6 +24,8 @@
import org.apache.camel.spi.DataFormat;
import org.apache.camel.util.ObjectHelper;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
/**
* Represents the <a href="http://activemq.apache.org/camel/artix-data-services.html">Artix Data Services</a>
@@ -34,6 +36,8 @@
@XmlRootElement(name = "artixDS")
@XmlAccessorType(XmlAccessType.FIELD)
public class ArtixDSDataFormat extends DataFormatType {
+ private static final transient Log LOG = LogFactory.getLog(ArtixDSDataFormat.class);
+
@XmlAttribute(required = false)
private String elementTypeName;
@XmlAttribute(required = false)
@@ -86,6 +90,9 @@
if (elementType == null) {
if (elementTypeName != null) {
elementType = ObjectHelper.loadClass(elementTypeName, getClass().getClassLoader());
+ if (elementType == null) {
+ LOG.warn("Could not load ArtixDS Element class: " + elementTypeName + " on the classpath");
+ }
}
}
return elementType;