Announcement Announcement Module
No announcement yet.
BeanFactory.getType(beanId) not working for lazy beans Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanFactory.getType(beanId) not working for lazy beans

    For a lazy-init bean which is affected by an aspect (i.e. interceptor), beanFactory.getType("beanId") returns the raw class instead of the actual proxy class. Once the lazy bean is instantiated, getType() returns the correct type of the proxy.

    Is this a bug or a feature?
    am I missing something?

    Just in case you want to know what is it that I wan't to accomplish with this, I'm using DWR with Spring and DWR is giving an exception when I expose lazy beans as remoting services bacause DWR is trying to invoke a Method object of the raw type (as reported by Spring) to an instance of the Proxy class.