[
https://issues.apache.org/jira/browse/OWB-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau updated OWB-1032:
------------------------------------
Attachment: OWB-1032.patch
a patch for it but I fear it is not spec compliant since we need to resolve for
each get() the instance. Since we don't have any destroy(I) then it is not safe
with not normal scoped beans
> create ProviderImpl (as an optimized InstanceImpl)
> --------------------------------------------------
>
> Key: OWB-1032
> URL: https://issues.apache.org/jira/browse/OWB-1032
> Project: OpenWebBeans
> Issue Type: Improvement
> Reporter: Romain Manni-Bucau
> Attachments: OWB-1032.patch
>
>
> Not enough time to do it myself ATM so opening a task to either not forget or
> let somebody else play with it.
> ATM we rely on InstanceImpl (Instance) to be able to inject a Provider.
> Instance as few more constraints since it can be used for dynamic resolution.
> Proposal: add ProviderImpl which is highly optimized (mainly a normal
> injection which can be unresolved which means we can cache the instance in
> the provider and skip all the dynamic resolution part).
> This would allow some kind of Optional natively.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)