-
Sep 10th, 2012, 03:08 AM
#1
What is the suggested way to create a scoped bean using a 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 at 03:22 AM.
Reason: Clearifying question (Hope so)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules