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(a)gmail.com> wrote:
Hmm, I actually wasn't thinking of the distinction between
annotations and those added through the SPI; I was thinking of ether
things like "@Inherited" and "(a)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.)
On Fri, Jun 5, 2009 at 2:44 PM, Gavin King<gavin.king(a)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(a)gmail.com> wrote:
>> 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 Popetz
>> Scalable Web Application Development
>> webbeans-dev mailing list
> Gavin King
Scalable Web Application Development