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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1405 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma 2009-06-19 13:57:03 +00:00
parent 7cbb06100e
commit 0ebfcc6952
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.
*/