Note that when called during the invocation of an {@link AfterBeanDiscovery} event observer, this method will return beans discovered by the container. This method will return all beans when called called during the invocation of an {@link * AfterDeploymentValidation} event observer, and when container is servicing requests.