PDA

View Full Version : applying one interceptor to all objects


kbaum
Aug 13th, 2004, 01:24 PM
We are performance testing our application and would like to apply the PerformanceMonitorInterceptor to all classes in the spring application contexts. I used the BeanNameAutoProxyCreator and gave it a beanNames argument of "*". This seems to only apply the advice to the beans local to that specific application context xml file. Our application has many parent context xml files.

Is there a way I can apply this advice to all the beans in the application without pasting the same BeanNameAutoProxyCreator in each application context xml file? Thanks.

Karl

Colin Sampaleanu
Aug 13th, 2004, 03:22 PM
BeanNameAutoProxyCreator does not work on beans in a parent context. If you do not necessarilly need parent-child contexts, but just different XML files for keeping things organized, you could have just one context, which is made up from multiple fragments (XML files).

Regards,

czh_19840306
Nov 30th, 2008, 12:02 AM
:)Understanded