[
https://issues.apache.org/jira/browse/OWB-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000533#comment-13000533
]
Mark Struberg commented on OWB-538:
-----------------------------------
I now thought a bit longer about the lazyInit stuff. I almost started hacking
it, but then I came across a few standard usecases which would be completely
broken
* a not annotated 'auto dependent' bean would throw a DeploymentException only
at runtime when it gets used the first time.
* a not annotated 'auto dependent' bean which contains a ProducerMethod would
register this ProducerMethodBean at runtime, thus completely changing the
behaviour of the whole container randomly
I fear lazy initialisation of beans is NOT possible!
> introduce proprietary configuration option to ignore not explicitly marked
> (via annotation or registered by extension) Dependent beans
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OWB-538
> URL: https://issues.apache.org/jira/browse/OWB-538
> Project: OpenWebBeans
> Issue Type: New Feature
> Components: Injection and Lookup
> Affects Versions: 1.0.0
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.1.0
>
>
> The JSR-299 spec defines that not annotated beans must get picked up as being
> @Dependent by default.
> But this
> a) introduces many errors in projects
> b) unnecessarily fills up our managed beans list
> c) causes lots of unnecessary work while scanning the classes.
> Thus I'd like to propose the introduction of a non spec compliant flag
> 'useExplicitDependentScoped' which is false by default
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira