Hello,
the following problem appears in my applications quite often and I am not sure about my solution so I would like to consult it with you.
In a nutshell I have got application which consumes two or more external components - it could be [web]service or library. I take some data from the first one and then convert it to my domain objects format - I take only data needed for performing my business operations, I don't want to pollute my domain object with external stuff. After processing I need to save output data using another service. The problem is that the second service needs all the informations that I trunk on conversion to domain objects.
To be more concrete: there is library which calculates fees and returns them in its own object format containing actual fee value and many other data completely useless for my domain model. On the other hand the web service that I am saving output in needs to receive xml which contains all data returned in object from calculations library (simply put it wants serialized form of this object).
How should I manage this? I usually create interface (eg. IFee) containing business data used in domain layer and its implementation which additionally contains all data needed by infrastructure. Domain is not coupled witch external format and when I need to get data for web service I simply cast down IFee to concrete implementation I get it.
Have you got any better solutions?
--
Best regards
Thank You for taking your
I was looking for crucial
When I read this post it
Cosmetics should be used
rosetta stone
The easiest and fastest way
nothing is impossible.
cookware of china
rolex
rolex
pandora jewelry
Five Finger Shoes
Cheap UGG
Five Finger Shoes
Jordan Shoes
ティファニー 激安
エアマックス 通販
コピーブランド腕時計
mbt シューズ
nike air jordan
gucci men shoes
cheap nfl jerseys
result in a palace on cheap nfl jerseys 11, 1996 in the operation wound was cheap nfl jerseys noodles machines disabled. Though not widespread wholesale nfl jerseys of child labor state-owned football jerseys, but it is an objective reality; second part nfl football jerseys the private enterprises are making profits, the nfl jersey as easy to manage, high residual cheap jerseys of cheap labor, a large number of illegal employment of child labor, poor working environment for a throwback nfl jerseys time heavy labor.
serious harm to the child's physical and mental health. The evening of 30 May 2001,