Spring Web Services Framework

org.springframework.oxm.xstream
Class AnnotationXStreamMarshaller

java.lang.Object
  extended by org.springframework.oxm.AbstractMarshaller
      extended by org.springframework.oxm.xstream.XStreamMarshaller
          extended by org.springframework.oxm.xstream.AnnotationXStreamMarshaller
All Implemented Interfaces:
Marshaller, Unmarshaller

public class AnnotationXStreamMarshaller
extends XStreamMarshaller

Subclass of the XStreamMarshaller that supports JDK 1.5+ annotation metadata for aliases.

Since:
1.0.2
Author:
Arjen Poutsma
See Also:
XStreamAlias

Field Summary
 
Fields inherited from class org.springframework.oxm.xstream.XStreamMarshaller
DEFAULT_ENCODING
 
Fields inherited from class org.springframework.oxm.AbstractMarshaller
logger
 
Constructor Summary
AnnotationXStreamMarshaller()
           
 
Method Summary
 void setAnnotatedClass(Class<?> annotatedClass)
          Sets the classes, for which mappings will be read from class-level JDK 1.5+ annotation metadata.
 void setAnnotatedClasses(Class<?>[] annotatedClasses)
          Sets annotated classes, for which aliases will be read from class-level JDK 1.5+ annotation metadata.
 
Methods inherited from class org.springframework.oxm.xstream.XStreamMarshaller
addAlias, convertXStreamException, getEncoding, getXStream, marshalDomNode, marshalOutputStream, marshalSaxHandlers, marshalWriter, marshalXmlEventWriter, marshalXmlStreamWriter, setAliases, setConverters, setEncoding, setMode, setSupportedClasses, setUseAttributeFor, setUseAttributeForTypes, supports, unmarshalDomNode, unmarshalInputStream, unmarshalReader, unmarshalSaxReader, unmarshalXmlEventReader, unmarshalXmlStreamReader
 
Methods inherited from class org.springframework.oxm.AbstractMarshaller
createDocumentBuilder, createDocumentBuilderFactory, createXmlReader, marshal, marshalDomResult, marshalSaxResult, marshalStaxResult, marshalStreamResult, unmarshal, unmarshalDomSource, unmarshalSaxSource, unmarshalStaxSource, unmarshalStreamSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationXStreamMarshaller

public AnnotationXStreamMarshaller()
Method Detail

setAnnotatedClass

public void setAnnotatedClass(Class<?> annotatedClass)
Sets the classes, for which mappings will be read from class-level JDK 1.5+ annotation metadata.

See Also:
Annotations.configureAliases(XStream, Class[])

setAnnotatedClasses

public void setAnnotatedClasses(Class<?>[] annotatedClasses)
Sets annotated classes, for which aliases will be read from class-level JDK 1.5+ annotation metadata.

See Also:
Annotations.configureAliases(XStream, Class[])

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.