I need a general understanding about the scope of objects in a Spring based web applications. Suppose i have a a web application with a Rest Webservice. The web application either fetches the record from database or persist the data into database. Is Singleton ,Prototype and prototype with ScopedProxyMode.TARGET_CLASS enough. Should i look into Request scope also?
Enough for what? Different types have different purposes and so different lifetimes. Why are you concerned with whether a handful of scopes is enough? Just use the right one for the right job, no matter if it's Singleton, Prototype, Request or something else still.
Watchya got in that poodle gun? Anything for me? Or this tiny ad?