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?
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?
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