Sep 10th, 2012, 03:08 AM
What is the suggested way to create a scoped bean using a FactoryBean?
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?
Last edited by ninan; Sep 11th, 2012 at 03:22 AM.
Reason: Clearifying question (Hope so)
Tags for this Thread