Bean init and destroy methods.