I'm using the ProxyFactoryBean in order to fire off an interceptor for a particular service (see below).
Now, I've got a few other service implementations using the same interface which I also want to use with the same interceptor. Is there a neat way of specifying all these implementations in the same ProxyFactoryBean so that I don't have to create a ProxyFactoryBeans for each one of them?
There actually are a large number of ways to solve this problem, far too many alternatives to cover here. All of them involve using the autoproxy facility. There is decent coverage of this topic in the manual. In Spring 2.5.4, this in
Chapter 7.9. Using the "autoproxy" facility
You will need to determine which autoproxy technology makes the most sense for you. If you are using Java 5 or later, metadata-driven auto-proxying is a particularly nice choice. We are using this quite nicely where I work.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg