Announcement Announcement Module
Collapse
No announcement yet.
How to insert objects in beanfactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to insert objects in beanfactory

    Hi Guys,
    I am creating certain objects on run time based on some runtime condition. This objects are heavy objects and they requre runtime parameters to instantiate.

    But this object/objects will be singleton thats for sure

    So can you help me to insert this objects in beanfactory. I am not able to find any method like beanfactory.setBean(beanid,beanobject)

    Thanks and Regards

  • #2
    So and why not simply use a FactoryBean instead of trying to mess around with beans yourself?

    Comment

    Working...
    X