You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2015/04/28 20:20:07 UTC

[jira] [Assigned] (OWB-1061) Surplus and missing @Initialized and @Destroyed events

     [ https://issues.apache.org/jira/browse/OWB-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reinhard Sandtner reassigned OWB-1061:
--------------------------------------

    Assignee: Reinhard Sandtner

> Surplus and missing @Initialized and @Destroyed events
> ------------------------------------------------------
>
>                 Key: OWB-1061
>                 URL: https://issues.apache.org/jira/browse/OWB-1061
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Lifecycle
>    Affects Versions: 1.5.0
>            Reporter: Harald Wellmann
>            Assignee: Reinhard Sandtner
>         Attachments: lifecycle-event.zip
>
>
> h3. Scenario
> There is a bean with two observer methods observing {{@Initialized(ApplicationScoped.class)}} and {{@Destroyed(ApplicationScoped.class)}} in a stand-alone CDI container launched via {{deltaspike-cdictrl-owb}}, for lack of a native OWB API.
> The container is started and stopped as follows:
> {code}
>         CdiContainer container = CdiContainerLoader.getCdiContainer();
>         container.boot();
>         container.getContextControl().startContexts();
>         container.getContextControl().stopContexts();
>         container.shutdown();
> {code}
> h3. Expected behaviour
> The {{@Initialized}} and {{@Destroyed}} events are observed once each, in this order.
> (Weld 2.2.11.Final does behave as expected, both via {{deltaspike-cdictrl-weld}}, and using the native Weld SE API.)
> h3. Actual behaviour
> The {{@Initialized}} event is observed three times, twice on startup, once on shutdown. The {{@Destroyed}} event is not observed at all.



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