java - Binding aspect to the super method call instead of the call on child -


i'm writing aspect , want add logic after repository save method executed. achieve wrote:

@after("execution(* com.myapp.jpa.myrepository.save(myentity)) && args(entity)") 

unfortunately, since repository extends: org.springframework.data.jpa.repository.jparepository

the aspect bound to:

org.springframework.data.jpa.repository.jparepository#save 

which works iterable entities instead of single object can accessed thought super method:

org.springframework.data.repository.crudrepository#save(s) 

the question is: syntax provide way write expression match super method call case? tried this:

@after("execution(* com.myapp.jpa.myrepository.save(..)) && args(entity)") 

however, works both methods, not super call.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -