|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder
public class JavolutionTranscoder
A net.spy.memcached.transcoders.Transcoder that serializes catalina
StandardSessions using Javolutions xml data binding facilities.
Objects are serialized to/from xml using javolutions built in
XMLFormats for standard types, custom/user types are bound using the
ReflectionFormat.
Additionally it's worth to note that cyclic dependencies are supported.
| Constructor Summary | |
|---|---|
JavolutionTranscoder(ClassLoader classLoader,
boolean copyCollectionsForSerialization,
CustomXMLFormat<?>... customFormats)
Constructor. |
|
JavolutionTranscoder(org.apache.catalina.Manager manager)
Constructor. |
|
JavolutionTranscoder(org.apache.catalina.Manager manager,
boolean copyCollectionsForSerialization,
CustomXMLFormat<?>... customFormats)
Constructor. |
|
| Method Summary | |
|---|---|
Map<String,Object> |
deserializeAttributes(byte[] in)
Get the object represented by the given serialized bytes. |
byte[] |
serializeAttributes(MemcachedBackupSession session,
Map<String,Object> attributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavolutionTranscoder(org.apache.catalina.Manager manager)
manager - the manager
public JavolutionTranscoder(org.apache.catalina.Manager manager,
boolean copyCollectionsForSerialization,
CustomXMLFormat<?>... customFormats)
manager - the managercopyCollectionsForSerialization - specifies, if iterating over collection elements shall be done
on a copy of the collection or on the collection itselfcustomFormats - a list of CustomXMLFormats or null.
public JavolutionTranscoder(ClassLoader classLoader,
boolean copyCollectionsForSerialization,
CustomXMLFormat<?>... customFormats)
classLoader - the classLoadercopyCollectionsForSerialization - specifies, if iterating over collection elements shall be done
on a copy of the collection or on the collection itselfcustomFormats - a list of CustomXMLFormats or null.| Method Detail |
|---|
public byte[] serializeAttributes(MemcachedBackupSession session,
Map<String,Object> attributes)
serializeAttributes in interface SessionAttributesTranscoderpublic Map<String,Object> deserializeAttributes(byte[] in)
deserializeAttributes in interface SessionAttributesTranscoderin - the bytes to deserialize
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||