Add callback for attached life cycle method.