Announcement Announcement Module
No announcement yet.
DefaultAdvisorAutoProxyCreator / getBeansOfType : bug ? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


  • #2
    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