[cdi-dev] Sorting out the "bean name" mess
bill.shannon at oracle.com
Thu Sep 6 13:21:30 EDT 2012
Pete Muir wrote on 09/06/2012 07:04 AM:
> The way a bean's name is referred to in the CDI spec is somewhat disjointed.
> I think this occurred because the CDI spec was written with the term "bean name", but it got changed due to concerns over confusion with:
> * JSF managed beans name
> * @ManagedBean name
> * EJB bean names
> As a result, we now have a mix of "bean name", "bean EL name", and "name", which is ultimately just confusing.
> I would like to standardize on a single term, and I would propose "bean name".
I agree with standardizing on a single term.
Where can I use these names? My understanding is that they're only or
mostly used in EL expressions, thus "bean EL name".
Can I inject a bean by name? That would motivate the more general
More information about the cdi-dev