Le 20 mars 2016 22:03, "Mark Struberg" <struberg@yahoo.de> a écrit :
>
>
>
> Sorry for my brevity. Was on a cellphone only.
>
>
> My point is: Context#get(Bean<T>) and Bean<T> only has getScope() which looks like
>
> public Class<? extends Annotation> getScope();
>
> Thus having something like
>
> @RequestScoped(allowMultithreads=true)
> public class BlaBlaController {..}
>
> would get represented by a Bean<BlaBlaController> which could only return RequestScoped.class.
> There is simply no way to return the "allowMultithreads=true" information somewhere as we only deal with Classes.
>
> The same applies to BeanManager#getContext():
>
> public Context getContext(Class<? extends Annotation> scope);
>

Not related to me since the context should handle it and not the bean manager.

>
> No Annotation but Class, you see?
>
> -> Currently there is no way to evaluate an additional attribute on a scope annotation.
>
>
> And thus section 2.4.2 of the CDI specification also clearly states
> "A scope type must not have any attributes. If a scope type has attributes non-portable behavior results."
>

Nothing we cant change and worde case change the flag to an own annotation and it works which prooves it is not really relevant and it would work.

> roger?
>
> LieGrue,
> strub
>
>
>
>
> On Sunday, 20 March 2016, 21:12, Romain Manni-Bucau <rmannibucau@gmail.com> wrote:
> >
> >Le 20 mars 2016 21:07, "Mark Struberg" <struberg@yahoo.de> a écrit :
> >>
> >> See Bean#getScope() and BeanManager#getContext()
> >>
> >> Just uses Class and no Annotation instance.
> >>
> >That's ok I think. Since 1.2 you can get meta from any bean and find it if needee but i  most of cases the context will see the bean and will not need it.
> >Would also break the Annotated contravt if true.
> >> Lgm
> >>
> >>
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.