darch
referring to StockList example
When the dataProvider is a small class, (that uses a 3rd party library), is it better to merge it the 'FeedSender' with the DataProvider class, DataProvider runs as a single instance right?
thanks
Mone
Hi darch,
I'm not sure I understood the question.
In any case note that the FeedSimulator is in fact a simulator. Depending on your case your third-party library may be a perfect substitute of our FeedSimulator, in that case only having a single DataProvider class may have sense.
There is no rule anyway, it mostly depend on the complexity and the logic separation as in any other java program.
HTH