[spring] Using init and destroy method for beans; logging, distructive and shutdownhook.