posted 10 years ago
A typical example are resources like some kind of database handler for example which needs some initialization steps and/or logic to clean up resources when it's no longer needed. In this case lifecycle callback methods called by the framework (IoC container) are a convenient way to initialize and destroy resources exactly once at the right time without manually having to call a init() or cleanup() method.
Marco