Repository: camel
Updated Branches:
  refs/heads/master de1985b3d -> 0a77f5347


Added Javadoc.


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

Branch: refs/heads/master
Commit: 0a77f53477dc64a118401fed41e548e61d950961
Parents: de1985b
Author: Henryk Konsek <[email protected]>
Authored: Wed Apr 9 20:58:35 2014 +0200
Committer: Henryk Konsek <[email protected]>
Committed: Wed Apr 9 20:58:35 2014 +0200

----------------------------------------------------------------------
 .../camel/dataformat/xstream/AbstractXStreamWrapper.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0a77f534/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 e97c6fb..8fc2697 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
@@ -58,7 +58,14 @@ public abstract class AbstractXStreamWrapper implements 
DataFormat {
     public AbstractXStreamWrapper(XStream xstream) {
         this.xstream = xstream;
     }
-    
+
+    /**
+     * Resolves the XStream instance to be used by this data format. If 
XStream is not explicitly set, new instance will
+     * be created and cached.
+     *
+     * @param resolver class resolver to be used during a configuration of the 
XStream instance.
+     * @return XStream instance used by this data format.
+     */
     public XStream getXStream(ClassResolver resolver) {
         if (xstream == null) {
             xstream = createXStream(resolver);

Reply via email to