|
From: Rajeev K. <Ra...@cu...> - 2003-11-18 21:31:10
|
I have been trying to use BeanNameAutoProxyCreator class (I noticed = there are no test cases for it) to create proxies for "prototype" = business objects. I extended the BeanNameAutoProxyCreator class to use = the PrototypeInvokerInterceptor in the "createInvokerInterceptor()" = method. However, this results in an infinite loop, as the = PrototypeInvokerInterceptor calls the beanFactory getBean() method which = in turn triggers the beanPostProcessor and the cycle repeats endlessly. Any suggestions on getting around this problem? It would have been better, if the BeanNameAutoProxyCreator class was = designed to take invokerInterceptor as a property, which could be = specified in the configuration, instead of having to subclass it to use = other invokerInterceptor(s).=20 Rajeev Kaul |