When using Spring Boot's datasource initialization features, there was the possibility that the datasource used by the TaskLifecycleListener was not ready by the time it was needed for regular injection. This commit addresses that by obtaining the datasource at the last possible moment. Resolves spring-cloud/spring-cloud-task#83 Updates per code review