camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: CAMEL-6651 Calling processAnnotations when using the XStreamDataFormat's aliases are set
Date Tue, 20 Aug 2013 02:56:41 GMT
CAMEL-6651 Calling processAnnotations when using the XStreamDataFormat's aliases are set


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a91c7e74
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a91c7e74
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a91c7e74

Branch: refs/heads/camel-2.11.x
Commit: a91c7e743498f0ca3443684d6ee40e17af5a61ca
Parents: ce51227
Author: Willem Jiang <ningjiang@apache.org>
Authored: Tue Aug 20 10:26:05 2013 +0800
Committer: Willem Jiang <ningjiang@apache.org>
Committed: Tue Aug 20 10:47:16 2013 +0800

----------------------------------------------------------------------
 .../apache/camel/dataformat/xstream/AbstractXStreamWrapper.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a91c7e74/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
index 76d6ca7..3aa8a01 100644
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java
@@ -91,6 +91,8 @@ public abstract class AbstractXStreamWrapper implements DataFormat {
             if (this.aliases != null) {
                 for (Entry<String, String> entry : this.aliases.entrySet()) {
                     xstream.alias(entry.getKey(), resolver.resolveMandatoryClass(entry.getValue()));
+                    // It can turn the auto-detection mode off
+                    xstream.processAnnotations(resolver.resolveMandatoryClass(entry.getValue()));
                 }
             }
 


Mime
View raw message