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

  • Object manageability

    In a tradtional approach object manageability is the resposibility of a service that needs those objects. They are created and stored for reference.
    As I understand with Spring, it benefits by creating objects and their reference on demand.When objects are not needed they can be disposed. The performance of Application is improved significantly with this.

    Correct me if I am wrong. I am writing a Tech Usage document about Spring and want to validate before commenting

    -Panda Santosh

  • #2
    That is relatively correct. Now with a default configuration, a Spring application context (but not a bean factory) will pre-instantiate singleton objects (the default state) by default. You can however turn this off by setting the lazy-load flag at the entire container level or bean level...

    As for destruction, it will happen for singletons when the container is actually closed. For prototype, non-singleton objects, Spring does not hold onto them past creation and initialization...