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

  • Spring Container

    Whether correctly to consider that Spring manages object's lifecycle?

    I thought if object has only 2 state (exists or not exists) - it's not lifecycle management.

    But in articles are using _lifecycle management_ term regarding Spring.

    Is it correct?

  • #2
    Spring does much more than just creating objects.
    The lifecycle management is appropriate in the sense that an object is constructed, indeed, then injected values (going to a state with configuration set), checked for special interfaces, which can led to more data injection (ApplicationContextAware, etc...) or method calling (InitializableBean, ...).
    It is just an extract but you can see that spring does much more than just calling constructors.

    Olivier

    Comment

    Working...
    X