Class XStreamSerializer

java.lang.Object
org.axonframework.serialization.AbstractXStreamSerializer
org.axonframework.serialization.xml.XStreamSerializer
All Implemented Interfaces:
Serializer

public class XStreamSerializer extends AbstractXStreamSerializer
Serializer that uses XStream to serialize and deserialize arbitrary objects. The XStream instance is configured to deal with the Classes used in Axon Framework in the most compact fashion.

When running on a Sun JVM, XStream does not pose any restrictions on classes to serialize. On other JVM's, however, you need to either implement Serializable, or provide a default constructor (accessible under the JVM's security policy). That means that for portability, you should do either of these two.

Since:
1.2
Author:
Allard Buijze
See Also:
  • XStream