RE: [picocontainer-dev] patches for *full* binding-annotation capability - key take aways & thoughts
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
________________________________
From: Paul Hammant
Sent: Wednesday, November 28, 2007 8:14 AM
Subject: Re: [picocontainer-dev] patches for *full* binding-annotation capability - key take aways & thoughts
@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.
________________________________
Uhhh, well, right. Who did you say, invented this annotation crap ?
:)
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email