Description
BeanManager must throw an IllegalStateException if the following methods are called before AfterBeanDiscovery:
- getBeans(String)
- getBeans(Type, Annotation...)
- getPassivationCapableBean(String)
- resolve(Set)
- resolveDecorators(Set, Annotation...)
- resolveInterceptors(InterceptionType, Annotation...)
- resolveObserverMethods(Object, Annotation...
- validate(InjectionPoint
before AfterDeploymentValidation:
- getReference(Bean, Type, CreationalContext)
- getInjectableReference(InjectionPoint, CreationalContext)
corresponding spec-issue: https://issues.jboss.org/browse/CDI-392