-
Dec 14th, 2008, 06:06 PM
#1
Load new beans runtime
Hello,
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.
Magnus
-
Dec 15th, 2008, 04:46 AM
#2
You can introduce a BeanPostProcessor and resolve necessary bean properties there.
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