Hello,

XStream 1.3 provides auto-detection mode for annotations.
This enables me to have a minimal XStream configuration (no need to use annotatedClasses property).

I didn't found a way to set call getXStream().autodetectAnnotations(true) from Spring configuration.

Could you add autodetectAnnotations property in AnnotationXStreamMarshaller (and call getXStream().autodetectAnnotations(true)) ?
I've the same request for Spring 3.x.


Thanks !

see also http://xstream.codehaus.org/annotati...tml#AutoDetect

I've extended Spring WS base classe meanwhile :
Code:
public class AnnotationXStreamMarshaller extends org.springframework.oxm.xstream.AnnotationXStreamMarshaller
        implements InitializingBean {

    /**
     * <p>Par défaut la détection automatique des annotations n'est pas activée.</p> 
     */
    private boolean autodetectAnnotations;
    
    /**
     * <p>Valorise la propriété autodetectAnnotations de XStream.</p>
     */
    public void afterPropertiesSet() {
        getXStream().autodetectAnnotations(true);
    }
    
    public boolean isAutodetectAnnotations() {
        return autodetectAnnotations;
    }
    
    public void setAutodetectAnnotations(boolean aAutodetectAnnotations) {
        autodetectAnnotations = aAutodetectAnnotations;
    }
}