AOP.xml defines to the Aspect engine what aspects to use in
load-time, and weave options:
<aspectj><aspects><aspect name="com.yourcompany.zoo.PerfSpyDemoAsepct"/></aspects><weaver options="-verbose -showWeaveInfo -debug"><include within="com.yourcompany.zoo.animal..*"/><include within="com.yourcompany.zoo.people..*"/><dump beforeandafter="true" within="com.yourcompany.zoo.animal..*"/><dump beforeandafter="true" within="com.yourcompany.zoo.people..*"/></weaver></aspectj>
1) [AppClassLoader@203ba002] debug not weaving 'com.yourcompany.zoo.Show'2) [AppClassLoader@203ba002] debug weaving 'com.yourcompany.zoo.animal.Animal'3) [AppClassLoader@203ba002] weaveinfo Join point 'method-execution(java.lang.String com.yourcompany.zoo.animal.Animal.getName())' in Type 'com.yourcompany.zoo.animal.Animal' (Animal.java:16) advised by around advice from 'com.yourcompany.zoo.PerfSpyDemoAsepct' (AbstractPerfSpyAspect.java) [with runtime test]4) [AppClassLoader@203ba002] weaveinfo Join point 'method-execution(com.yourcompany.zoo.people.Trainer com.yourcompany.zoo.animal.Animal.getTrainer())' in Type 'com.yourcompany.zoo.animal.Animal' (Animal.java:20) advised by around advice from 'com.yourcompany.zoo.PerfSpyDemoAsepct' (AbstractPerfSpyAspect.java) [with runtime test]5) [AppClassLoader@203ba002] debug generating class 'com.yourcompany.zoo.animal.Animal$AjcClosure1'6) [AppClassLoader@203ba002] debug generating class 'com.yourcompany.zoo.animal.Animal$AjcClosure3'
<include within="com.yourcompany.zoo.animal..*"/>
<include within="com.yourcompany.zoo.people..*"/>
@Pointcut("execution(*
com.yourcompany.zoo..*.*(..) )")
public void withinCflowOps()
<dump beforeandafter="true"
within="com.yourcompany.zoo.animal..*"/>
<dump beforeandafter="true" within="com.yourcompany.zoo.people..*"/>
No comments:
Post a Comment