Hi Mark,
The difficultly is that Java doesn't support this sort of behaviour. :( It
is a feature I would have used is other ways if it were. (So I am happy to be
corrected)
This doesn't mean it cannot be done, but a standard approach would need to be
agreed.
Do anyone know what approach other any other product use if they support this?
Just my thoughts,
Peter.
BTW A better syntax, if it were supported would be something like
@Retention(RetentionPolicy.RUNTIME)
public @interface ReportComponent extends @Component(immediate = true),
@Service {
}
-----Original Message-----
From: Mark Derricutt [mailto:[email protected]]
Sent: 16 December 2009 00:51
To: [email protected]
Subject: maven-scr-plugin annotations
'lo all,
I'm really loving using the JDK annotations for @Component and
@Service etc. in my code base, really makes using SCR much nicer,
however I was wondering if the plugin supports chained annotations at
all? What I'd love to do is:
@Component(immediate = true)
@Service
@Retention(RetentionPolicy.RUNTIME)
public @interface ReportComponent {
}
and then on my component classes just use @ReportComponent instead of
repeating the @Component/@Service pair. Does anyone know if the
plugin supports this, or can support it?
--
Pull me down under...
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]