Hi,

I've started converting our various aspects to the annotation style of 
development so that we can use the ordinary java compiler and then weave 
at runtime. This way our build process doesn't need to change and since we 
are new to aspectj, very comforting for everyone.

However I seem to have hit on a snag when it comes to declaring our 
@Tracing annotation, since the @DeclareAnnotaion equivalent doesn't seem 
to work, and reading the documentation confirms this. Is there some 
workaround that I can use no matter how dirty?

A little more background to what I am trying to do: I would like to create 
a number of different tracing profile aspect that declare the tracing 
annotations in different combinations, so that we can choose which one 
gets woven by modifying a deployment aop.xml file, here are a couple of 
examples:

//  I have example pojos called Pojo1.java, Pojo2.java etc for this test 
case

public aspect FullPojoTracing {
        declare @type : Pojo* : @Tracing(loggerName = "FullPojoTracing");
 
        declare @field : * Pojo*.* : @Tracing;
 
        declare @constructor : Pojo*.new(..) : @Tracing;
 
        declare @method : * Pojo*.*() : @Tracing;
}

public aspect ConstructorPojoTracing {
        declare @type : Pojo* : @Tracing(loggerName = 
"ConstructorPojoTracing");
 
        declare @constructor : Pojo*.new(..) : @Tracing;
}

Thanks for any tips
- Ashley

---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to