Announcement Announcement Module
No announcement yet.
using protytype proxies with ProxyFactoryBean Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • using protytype proxies with ProxyFactoryBean

    I'm trying to optimize my AOP code by caching all the ProxyFactoryBeans I create with key=class. I set isSingleton(false) on the ProxyFactoryBean and I get "Using non-singleton proxies with singleton targets is often undesirable" which is going to kill my logging. So I was trying to use setTargetName like it suggests but I also apparently have to define a BeanFactory. So is there a bean factory that I can use that will initialize from say a class name? I don't know what classes I might be proxying at runtime so I can't list and name them all in a bean config file. Not using the setTargetName works just fine for me except for the logging issue I mentioned. Any suggestions? Thanks.
    Last edited by tongueNcheek; May 28th, 2008, 06:06 PM.