Results 1 to 2 of 2

Thread: Object manageability

  1. #1
    Join Date
    Nov 2004
    Posts
    2

    Default 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

    cheers,
    -Panda Santosh

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    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...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •