Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] around advice and introduced method

Is the firePropertyChange the one that is mixed in?  If so is it suppose to be applied to the class Bean?  If that is the case then you code should just read:
 
void around( Bean b ) : callSetter( b )  {
      b.firePropertyChange( b, propertyName, oldValue, b.getName()); --> This is the inter-type declaration
  }
 
-----Original Message----- 
From: mohan.radhakrishnan@xxxxxxxxxxxxx [mailto:mohan.radhakrishnan@xxxxxxxxxxxxx] 
Sent: Tue 8/23/2005 7:45 AM 
To: aspectj-users@xxxxxxxxxxx 
Cc: 
Subject: [aspectj-users] around advice and introduced method



	Hi,
	 
	  I am using the mixin pattern( declaring an interface inside my aspect ). How do I call an introduced method from 
	within my around advice like this ?
	 
	  pointcut callSetter( Bean b ) 
	     : call( public void com.blueprint.util.test.Bean.setName( String ) ) && target( b );
	  
	  void around( Bean b ) : callSetter( b )  {
	      firePropertyChange( b, propertyName, oldValue, b.getName()); --> This is the inter-type declaration
	  }
	 
	 
	Thanks,
	Mohan


	

	This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

<<winmail.dat>>


Back to the top