|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.server.SerializerMapper
public class SerializerMapper
Maps from an arbitary object graph to an object graph which contains only objects supported by the Serializer.
This means that: - List is transformed into Vector - Map is transformed into SafeHashtable - for any other object a DTO class name is constructed based on the package prefix. Then the properties of the input object are copied into the DTO object.
| Constructor Summary | |
|---|---|
SerializerMapper(java.lang.String packagePrefix)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
map(java.lang.Object o)
Recursive method to map the given object graph to an object graph which contains only objects which are supported by the Serializer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializerMapper(java.lang.String packagePrefix)
packagePrefix - the package for the dto-Classes of the
clientapp-common-module, where the common dtowrappers for the
serverapplication resides.| Method Detail |
|---|
public final java.lang.Object map(java.lang.Object o)
throws SerializationException
o - the object to convert
SerializationException - if
a serialization related problem occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||