[
https://issues.apache.org/jira/browse/OWB-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000586#comment-13000586
]
David Jencks commented on OWB-538:
----------------------------------
Maybe I've forgotten too much jcdi the last few weeks while working on other
stuff, but I don't understand your usecases.
1. IIUC right now if we can't create metadata for a class, we don't, and ignore
the failure. If you then try to load such a web bean dynamically at runtime,
won't you get the same exception?
2. Such a bean has a @ProducerMethod annotation, right? So we'd find it and
register the ProducerMethodBean at deploy time.
To perhaps try to be clearer.... I was thinking of looking for all annotations
at deploy time and dealing with all of them (producer methods, fields, @Inject,
etc etc etc) and only dealing with completely unannotated beans lazily. (IIRC
there's some @Alternative (???) annotation that can also pull in other
unannotated sub- or super- classes.... these can be dealt with at deploy time
also).
> 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