[
https://issues.jboss.org/browse/WELD-1045?page=com.atlassian.jira.plugin....
]
Martin Kouba reopened WELD-1045:
--------------------------------
Event is not fired unless decorator/interceptor is enabled in containing bean archive.
See check in {{AbstractBeanDeployer.fireProcessBeanAttributes()}}.
Corresponding TCK 1.1 tests:
org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.interceptor.InterceptorProcessBeanAttributesTest
org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.decorator.DecoratorProcessBeanAttributesTest
ProcessBeanAttributes not fired for interceptors and decorators
---------------------------------------------------------------
Key: WELD-1045
URL:
https://issues.jboss.org/browse/WELD-1045
Project: Weld
Issue Type: Bug
Reporter: Martin Kouba
Assignee: Jozef Hartinger
Fix For: 2.0.0.Alpha1
The spec (CDI 1.1) states: "The container must fire an event for each enabled bean,
interceptor or decorator deployed in a bean archive, before registering the Bean
object."
However ProcessBeanAttributes is not fired for interceptors and decorators.
Probably because of *BeanDeployerEnvironment.addInterceptor(InterceptorImpl<?>)*
and *BeanDeployerEnvironment.addDecorator(DecoratorImpl<?>)* do not add intercetors
and decorators bean to classBeanMap - the source of beans used in
*org.jboss.weld.bootstrap.BeanDeployer.processBeans()*.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira