Announcement Announcement Module
Collapse
No announcement yet.
Best practice to create scoped beans using FactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best practice to create scoped beans using FactoryBean

    Hi,

    i am actually prototyping a multi tenant application. I already implemented and registred a TenantScope. Now I came to the task of creating a bean using a FactoryBean. I already dug out, that this isn't possible out of the box by using <aop:scoped-proxy> together with the FactoryBean, because its the factory which gets proxied instead of the created bean.

    I googled and searched the source code of the container, but did not yet found a simple and clean way to achieve this. So what is the suggested way to create a scoped bean using a factory bean?

    Best regards,

    Christian
    Last edited by ninan; Sep 11th, 2012, 04:22 AM. Reason: Clearifying question (Hope so)
Working...
X