Description
While .bean("beanName") does lookup into the registry, .bean(Bean.class) does not and directly instantiates the provided class.
It would be more consistent to have it looking into the registry and return a bean reference if only one bean of the provided class is resolved. If the resolution is ambiguous or no beans match, an exception should be thrown.
This is also applicable to all .bean(Class, ...) methods.