[cdi-dev] 'implicit bean' definition, section 2.5.1
Matej Novotny
manovotn at redhat.com
Mon Jun 6 02:25:24 EDT 2016
Hi Mark
I think there is a reason for that.
Look at section "12.1. Bean archives" -> "An implicit bean archive is any other archive which
contains one or more bean classes with a bean defining annotation as defined in Bean defining annotations." (E.g. which contains one or more implicit beans)
Basically, "implicit bean" creates a basis for definition on "implicit bean archive" (and, as opposed to that, "explicit bean archive").
I think you want to use explicit/implicit to define archives (based on presence/absence of beans.xml). And from that you derive that implicit archive contains implicit beans.
Matej
----- Original Message -----
> From: "Mark Struberg" <struberg at yahoo.de>
> To: "Cdi-dev" <cdi-dev at lists.jboss.org>
> Sent: Monday, June 6, 2016 6:40:54 AM
> Subject: [cdi-dev] 'implicit bean' definition, section 2.5.1
>
> "A bean class with a bean defining annotation is said to be an implicit
> bean."
>
> That sounds pretty weird to me. I would have expected it exactly the other
> way around.
> A bean with a @SessionScoped annotation is rather an explicit bean to me.
>
> Any reason for this section?
>
> LieGrue,
> strub
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at 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.
>
More information about the cdi-dev
mailing list