[cdi-dev] Attributes on scope annotations

Matej Novotny manovotn at redhat.com
Fri Sep 1 04:49:04 EDT 2017


Hello Todor,

>From CDI specification 2.0 section 2.4.2 Defining new scopes[1]:

"A scope type must not have any attributes. If a scope type has attributes non-portable behavior results."

Matej

___________________________________________________________________________-
[1] http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#defining_new_scope_type



----- Original Message -----
> From: "Todor Boev" <rinsvind at gmail.com>
> To: cdi-dev at lists.jboss.org
> Sent: Friday, September 1, 2017 9:51:47 AM
> Subject: [cdi-dev] Attributes on scope annotations
> 
> Hello,
> 
> Is it against the CDI 2.0 specification to have attributes on a scope
> annotation? If not is this a corner case that may become forbidden or simply
> not be taken into account in future versions of the specification?
> 
> E.g. @ComponentScoped("my-component")
> 
> With Weld 3.0.0 I was able to successfully use such annotations.
> 
> Regards,
> Todor
> 
> 
> _______________________________________________
> 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