Dec 22nd, 2004, 01:29 AM
DefaultAdvisorAutoProxyCreator / getBeansOfType : bug ?
I am using a DefaultAdvisorAutoProxyCreator to add proxy to my daos to send event when I call some methods on them.
To do that, my interceptor is application context aware. In the setSpringContext method I call the method getBeansOfType to retrieve all spring beans that implements my listener.
When I do that, my daos are not proxied by the advisor because it seems that the advisor isn't in the postProcessor list at this time. If I remove the call everything is ok.
Is this a normal behavior or a bug ? Do I miss something ?
Thanks in advance
Dec 23rd, 2004, 03:59 AM
Sorry to repost on this thread but I really want to know if calling 'getBeansOfType' in the 'setApplicationContext' is allowed or not.
If this is allowed, I think there is a bug on the DefaultAdvisorAutoProxyCreator application when using getBeansOfType before the beans are configured