public Object beforeInvoke ( Object object , String methodName , Object [ ] arguments ) { if ( ! calls . containsKey ( methodName ) ) calls . put ( methodName , new LinkedList ( ) ) ; ( ( List ) calls . get ( methodName ) ) . add ( System . currentTimeMillis ( ) ) ; return null ; }
This code is executed before the method is called .