Dec 14th, 2008, 06:06 PM
Load new beans runtime
I need to load new beans runtime from a database.
It means I would like to load new beans which has properties. These properties should be injected by spring when I load the bean. The config can be in xml or in annotations.
When I load this bean it should load/manage correctly all the other annotation xml based configs.
Eg: transaction management etc.
So it should be the same when this bean loads at normal spring startup but I need to load it runtime.
Do you have an idea how can I load a bean runtime from a database source.
Dec 15th, 2008, 04:46 AM
You can introduce a BeanPostProcessor and resolve necessary bean properties there.