hi, i wondering that is AOP possible to do this ?
say i got a method
Code:public interface UserManagementService { public User getUser(long id); }
Code:@Aspect public class UserManagementAspect { //or maybe a point cut that intercept return value ?? @After("execution(* UserManagementService.getUser(..)&&arg(id)") public void processUser(long id) { User user = ... //value return by getUser() } }
is that possible to do something like this ?
kiwi
---
happy hacking !


Reply With Quote