[weld-issues] [JBoss JIRA] (WELD-1045) ProcessBeanAttributes not fired for interceptors and decorators
Martin Kouba (JIRA)
jira-events at lists.jboss.org
Mon Apr 16 08:02:17 EDT 2012
[ https://issues.jboss.org/browse/WELD-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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
More information about the weld-issues
mailing list