[jboss-user] [JBoss AOP] - Re: annotation-introduction + aspect oriented annotations

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Nov 28 21:08:09 EST 2006


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



More information about the jboss-user mailing list