Announcement Announcement Module
Collapse
No announcement yet.
Reloading beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • rajiv.roopan
    started a topic Reloading beans

    Reloading beans

    Hello, I'm pretty new to spring and it think it's just great! I was wondering if anyone knew how to reload a bean? Or re-initialize a bean from it's definition?

    thanks!
    rajiv

  • Costin Leau
    replied
    Use applicationContext.refresh()

    Leave a comment:


  • Injecteer
    replied
    3 ways:

    1. Maybe you just need a ptototype?
    2. Use AppContext.refreshBeanFactory() (or something like that). That'll reload the whole context.
    3. Try looking at "7.11. Using TargetSources" in the ref, if you need something more sophisticated

    Leave a comment:

Working...
X