We have a web app at work that employs a number of services, sucha s security/permissions for table/row access, os registry access, os ini file access, etc..
We have implemented these globally using services as either application (tomcat application) context objects or static methods in a class.
For our purposes, these objects only access session scoped varialbes. Since this is the case, there is never a concern about synchronization of access.
My question is why would Spring dependency injection be a better model for access to these services than simple static method calls?


Reply With Quote