[webbeans-dev] Question on 11.2.15: returning metadata on annotations

Gavin King gavin.king at gmail.com
Mon Jun 8 03:11:19 EDT 2009


what I'm saying is I think it should return *all* meta-annotations.

Hrm, perhaps it would be better to return an Annotated instead...

On Sun, Jun 7, 2009 at 5:01 PM, Clint Popetz<cpopetz at gmail.com> wrote:
> Hmm, I actually wasn't thinking of the distinction between JSR299
> annotations and those added through the SPI; I was thinking of ether
> things like "@Inherited" and "@SomethingCompletelyNonRelated."
>
> So I'll presume "no" on the above, and just return things defined by
> the spec or added by the SPI.
>
> I would suggest changing that line in the spec to "obtain the set of
> meta-annotations  declared by a stereotype or interceptor binding type
> that are related to this specification or added through the SPI."
>
> (Or something less verbose.)
>
> -Clint
>
>
> On Fri, Jun 5, 2009 at 2:44 PM, Gavin King<gavin.king at gmail.com> wrote:
>> hrm, I'm inclined to say all meta-annotations (including annotations
>> passed to BeforeBeanDiscovery.addXxxxx()).
>>
>> On Thu, Jun 4, 2009 at 9:58 AM, Clint Popetz<cpopetz at gmail.com> wrote:
>>> Hi,
>>>
>>> Should these methods:
>>>
>>> public Set<Annotation> getInterceptorBindingTypeDefinition(Class<?
>>> extends Annotation> bindingType);
>>> public Set<Annotation> getStereotypeDefinition(Class<? extends
>>> Annotation> stereotype);
>>>
>>> which are defined to "obtain the set of meta-annotations declared by a
>>> stereotype or interceptor binding type," return the complete set of
>>> meta-annotations, or only those that are relevant to JSR-299?  I ask
>>> because I don't think the spec prohibits you from annotating a
>>> sterotype or interceptor binding type annotation with other
>>> annotations, but as a client of the above method I wouldn't expect to
>>> get back extra non-related stuff, based on the method name.
>>>
>>> -Clint
>>>
>>> --
>>> Clint Popetz
>>> http://42lines.net
>>> Scalable Web Application Development
>>> _______________________________________________
>>> webbeans-dev mailing list
>>> webbeans-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>
>>
>>
>>
>> --
>> Gavin King
>> gavin.king at gmail.com
>> http://in.relation.to/Bloggers/Gavin
>> http://hibernate.org
>> http://seamframework.org
>>
>
>
>
> --
> Clint Popetz
> http://42lines.net
> Scalable Web Application Development
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org




More information about the weld-dev mailing list