Results 1 to 2 of 2

Thread: Load new beans runtime

  1. #1
    Join Date
    Jun 2008
    Posts
    1

    Exclamation 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

  2. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    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
  •