Class SourceGenericDTOMapper
java.lang.Object
com.levigo.jadice.web.client.messaging.SourceGenericDTOMapper
The mapper used for non-JavaScriptObject serialization classes, esp. the ones used by JsInterop.
You have to take care of providing a correct SourceGenericDTO.getObjectAsJson(Object)
implementation, as otherwise loading a document with that source will not work.
Luckily import jsinterop.base.Js#asString(object)
should be all you need if you work with
JsInterop and wire the class correctly (see
com.levigo.jadice.web.demo.common.client.service.sources.RemoteIDParamsDTO
)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSerialization
(String keyword, SourceGenericDTO dto) static SourceGenericDTOMapper
getSerialization
(String keyword)
-
Constructor Details
-
SourceGenericDTOMapper
public SourceGenericDTOMapper()
-
-
Method Details
-
getInstance
-
addSerialization
-
getSerialization
-