Results 1 to 1 of 1

Thread: using protytype proxies with ProxyFactoryBean

  1. #1

    Question 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 at 06:06 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •