[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] cflowbelow and capturing context
|
- From: Bhaskar Maddala <maddalab@xxxxxxxxx>
- Date: Fri, 21 May 2010 13:56:20 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=twyhuF7s8nHhDKRnJqFvhJsXG22M7X9zrJh9zNVUO4o=; b=X/WOgYAaDXbhLe+AfTTu8yuAtOveXmL3oKnKPwATNXcooHoyRx/r5ULFDE0EAEDJR/ D3+kXGSKLb441cE5zCXR50clhAXE6R3l5SoyBIIzVogO/6/sMWvnJzP7NIrRHFb9Py20 r5iFE6X7YwuDkJRlYPpRYaPZTiYiMC+3KeURk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lxGkqFcDgl2HeIyZtvUZKnGSaxvn0lhB7Qe3htWox84yIu3p5pILvLmIT94wywRX1p BXEB0pt0M9rWBVNFygOjD+372h9/ldtlTscZRXas0phPdJwYFobSlsv7U6sTcdjdD3Jz ldQ0+LjrHtiXt3tJlZNRWSuyWvOEt/0lLhvOE=
Hello,
I am trying to write a few point cuts and capture context and am
having trouble capturing the necessary context
Capture the execution pointcut for the Calculation.getHealth JP
method invocation
@Pointcut("execution(public java.util.List<metrics.Health>
metrics.Calculation.getHealth(metrics.AggregateInfo))")
public void computationOfHealth() {
}
execution of any methods with the @Category annotation in the
cflowbelow computationOfHealth capture the annotation
@Pointcut("execution(@Category * *(..)) &&
cflowbelow(computationOfHealth()) && @annotation(category)")
public void category(Category category) {
}
Require help here-
execution of any methods with the @RuleSet annotation in the
cflowbelow category
I would like to capture the ruleset (and if possible) the Category annotation
@Pointcut("execution(@RuleSet * *(..)) &&
cflowbelow(category(Category)) && @annotation(rs)")
public void ruleset(RuleSet rs) {
}
I have tried a couple of different options
Not what I want but worth a shot
@Pointcut("execution(@RuleSet * *(..)) && @annotation(rs)")
and
@Pointcut("execution(@RuleSet * *(..)) &&
cflowbelow(category(Category)) && @annotation(rs)")
with the error message
[iajc] MessageHolder: (6 weaveinfo) (530 info) (1 error)
[iajc] [error 0]: error at
audit/AuditorPointcutCaptures.java::0 incompatible number of arguments
to pointcut, expected 1 found 0
Assistance much appreciated.
Thanks
Bhaskar