If you call toString(), you will never know what you got, should it be just the object with link to toString(), so that if user want to see the detail, the link will serve raw html instead of json?
I think toString() called everywhere related with beans, interceptors, producers, events. so this should be a unified behaviour, if you decided to change the application context, I would expect it will apply to everywhere that call toString() currently.
|