SPR-5760 - XStreamMarshaller can not activate XStream automatic annotations detection feature
This commit is contained in:
parent
c2e65baa70
commit
3169d428ec
|
|
@ -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…
Reference in New Issue