SPR-5760 - XStreamMarshaller can not activate XStream automatic annotations detection feature

This commit is contained in:
Arjen Poutsma 2009-06-19 13:57:03 +00:00
parent c2e65baa70
commit 3169d428ec
1 changed files with 10 additions and 0 deletions

View File

@ -269,6 +269,16 @@ public class XStreamMarshaller extends AbstractMarshaller implements Initializin
this.getXStream().processAnnotations(annotatedClasses);
}
/**
* Set the auto-detection mode of XStream.
* <p><strong>Note</strong> that auto-detection implies that the XStream is configured while it is processing the
* XML steams, and thus introduces a potential concurrency problem.
* @see XStream#autodetectAnnotations(boolean)
*/
public void setAutodetectAnnotations(boolean autodetectAnnotations) {
this.getXStream().autodetectAnnotations(autodetectAnnotations);
}
/**
* Set the XStream hierarchical stream driver to be used with stream readers and writers.
*/