Within the annotation-introduction you have a few different "verbs":

constructor - introduces annotation onto a constructor
method - introduces onto a method
field - introduces onto a field
class - introduces onto a class

What you have there is the same as


  | package gui.complaints;
  | 
  | public class  SomeClass{
  |    @SystemRecord
  |    public SomeClass(){}
  | }
  | 

I think what you want is 

  | <annotation-introduction expr="class(gui.complaints.*)">
  |     @util.SystemRecord
  | </annotation-introduction>
  | 
  | <bind pointcut="call(@util.SystemRecord->new(..))">
  |      <interceptor class="aspects.SystemRecordInterceptor"/>
  | </bind>
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989549#3989549

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989549
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to