Convert java data object to service object
When writing a service we generally tend to have a separation between data
object(ORM) and service object(one that is marshalled into a JSON/XML
etc.) and end up writing a converter that takes data object(s) as input
and produces service object(s). The converter does nothing but gets data
from data object using getters and sets some of them into the service
object.
I hope most people would be able to relate to this process. I want to know
if JDK has anything to optimize this scenario.
I am thinking more in terms of the optimized array copy where jvm does it
at a System level.
No comments:
Post a Comment