Results 1 to 2 of 2

Thread: RFE AnnotationXStreamMarshaller autodetectAnnotations

  1. #1
    Join Date
    Jul 2005
    Posts
    156

    Default RFE AnnotationXStreamMarshaller autodetectAnnotations

    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;
        }
    }

  2. #2
    Join Date
    Jul 2005
    Posts
    156

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •