[
https://issues.apache.org/jira/browse/OWB-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg resolved OWB-1064.
--------------------------------
Resolution: Fixed
ApplicationContext#destroy() now only destroys custom beans whereas
ApplicationContext#destroySystemBeans() destroys all beans in the list.
> Split ApplicationContext destroyal for custom beans and CDI internal beans
> like Extensions
> ------------------------------------------------------------------------------------------
>
> Key: OWB-1064
> URL: https://issues.apache.org/jira/browse/OWB-1064
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Context and Scopes
> Affects Versions: 1.5.0
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.5.1
>
>
> The ApplicationContext must be shut down _before_ the BeforeBeanDiscovery
> extension event. But otoh all internal beans and Extensions iteslf are
> defined as being @ApplicationScoped.
> To solve this problem we need to have the Context#destroy() method only
> destroy custom beans. Additionally I will introduce a new method
> ApplicationContext#destroySystemBeans which finally also destroys Extensions,
> etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)