Re: [picocontainer-dev] patches for *full* binding-annotation capability - key take aways & thoughts
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
>>
>> @Retention(RetentionPolicy.RUNTIME)
>> @Target({ElementType.FIELD, ElementType.PARAMETER})
>> @Bind
>> public static @interface BindOne {}
>>
>>
>
> Without a closer look, but shouldn't "Class<? extends Annotation>
> binding" rather be "Class<? extends Bind> binding" ? End the end we
> handle arbitrary annotations only if they are derived from Bind ...
> or did I miss something?
>
Yup, Java's annotations are not as sophisticated as that.
You're hoping for -
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public static @interface BindOne extends Bind {}
- which does not compile.
- Paul