Hi!

I'm asking myself if forbiding various methods until AfterDeploymentValidation isn't a bit too tight.

It does of course make no sense to call getBeans, etc until AfterBeanDiscovery.
But it could make sense to allow it IN AfterBeansDiscovery. Of course, adding beans in ABD would need to reset some resolver-caches maybe (depends on the actual container implementation). But at least it would make sense and would be pretty predictiable (in contrast to calling getBeans _during_ the class-scanning).

wdyt?

LieGrue,
strub