|
From: Vasiliy G. <vas...@gm...> - 2006-02-26 16:33:38
|
HI, I'm tring understand if this is bug or feature. Here is what I'm doing. To test our Spring based app I'm mocking all "external" (with respect my project) services and injecting these mocks via BeanNameAutoProxyCreator. Everything worked fine but the interceptor for bean implemented through SimpleRemoteStatelessSessonProxyFactoryBean. I found a way to make it work but in the process I found that: 1) If I to create simple FactoryBean it will be intercepted itself though I would expect bean created by FactoryBean (its product) to be intercepted. 2) Neighter SimpleRemoteStatelessSessonProxyFactoryBean not its product wil= l not be intercepted at all. Ant that is what I do not understand. When I'm intercepting call between 2 beans I'm thinking runtime, I do not even think about how these beans are created: directly or via FactoryBean. I can't make any sence out of the fac= t that Spring intercepts FactoryBean itself. Is it just a bug or is there any consious decision to implement this way? |