This is a design issue that I continue to stumble across....
I am at a crossroads between passing instances of my pojo objects as data containers VS. a long list of parameters. Having worked with both cases, the long list of parameters gets very unmanageable. (What was that 10th parameter?....) Another option is to pass a map of parameters, but that is also problematic since you have all kinds of code to add and process the map.
That leaves me with passing my pojo's as a data container to my web service. What are the drawbacks of such a design? Or Is the time invested in a map of parameters worth it?
The API that I am designing is pretty much like a JCR repository, but one that provides some additional services around images and searching, and most importantly, super fast.
Thank you for your time. Phillip
