bean life cycle using annotations