Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Matching declared annotations by annotation parameters

Hi!
it would be rather nifty if one could match on actual parameters of
the annotation, but I can't seem to find a way to match annotations by
specific annotation parameters. This is what I would like to do is:

aspect SampleAspect {
  declare @field : @Sample("matches") * *: @Added;
}

so that every field annotated with @Sample whose value is "matches"
(or generally any annotation key-value) to have additional annotation
added (@Added)

thanks!

zoran
--
Human by day user by night


Back to the top