INT-3365: Add `SmartLifecycle` for annotations

JIRA: https://jira.spring.io/browse/INT-3365