Antonin Stefanutti created OWB-1040:
---------------------------------------

             Summary: Lifecycle events fired during bean discovery do not 
follow specification sequence
                 Key: OWB-1040
                 URL: https://issues.apache.org/jira/browse/OWB-1040
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Lifecycle
    Affects Versions: 1.5.0
            Reporter: Antonin Stefanutti
            Priority: Critical


The lifecycle events, like {{ProcessInjectionPoint}} and 
{{ProcessBeanAttributes}} are not fired according to the sequence specified in 
the [Bean 
discovery|http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#bean_discovery_steps]
 section of the specification.

Besides, the {{BeanAttributes}} set with the {{ProcessBeanAttributes}} event 
are accessed directly which contradicts the [{{ProcessBeanAttributes}} 
event|http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#process_bean_attributes] 
specification:
{quote}
Any observer of this event is permitted to wrap and/or replace the 
BeanAttributes. The container must use the final value of this property, after 
all observers have been called, to manage instances of the bean. Changes to 
BeanAttributes are not propagated to the annotated type from which the bean 
definition was created.
{quote}

Use case can be found in the [Camel CDI 
extension|https://github.com/astefanutti/camel-cdi], more precisely:
https://github.com/astefanutti/camel-cdi/blob/6d2bb272ff070e38736a5cef10d113bbd582c95e/impl/src/main/java/org/apache/camel/cdi/CdiCamelExtension.java#L118




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to