Browse Source

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
pull/1/head
Arjen Poutsma 17 years ago
parent
commit
0ebfcc6952
  1. 10
      org.springframework.oxm/src/main/java/org/springframework/oxm/xstream/XStreamMarshaller.java

10
org.springframework.oxm/src/main/java/org/springframework/oxm/xstream/XStreamMarshaller.java

@ -269,6 +269,16 @@ public class XStreamMarshaller extends AbstractMarshaller implements Initializin @@ -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.
*/

Loading…
Cancel
Save