public Object invoke ( TargetMetaRequest targetMetaRequest , Method method , Object [ ] args ) throws Throwable { targetMetaRequestsHolder . setTargetMetaRequest ( targetMetaRequest ) ; Debug . logVerbose ( "[JdonFramework] enter AOP invoker2 for:" + targetMetaRequest . getTargetMetaDef ( ) . getClassName ( ) + " method:" + method . getName ( ) , module ) ; Object result = null ; MethodInvocation methodInvocation = null ; try { List < MethodInterceptor > chain = advisorChainFactory . create ( targetMetaRequest . getTargetMetaDef ( ) ) ; methodInvocation = new ProxyMethodInvocation ( chain , targetMetaRequestsHolder , targetServiceFactory , method , args ) ; Debug . logVerbose ( "[JdonFramework] MethodInvocation will proceed ... " , module ) ; result = methodInvocation . proceed ( ) ; } catch ( Exception ex ) { Debug . logError ( ex , module ) ; throw new Exception ( ex ) ; } catch ( Throwable ex ) { throw new Throwable ( ex ) ; } finally { targetMetaRequestsHolder . clear ( ) ; } return result ; }
dynamic proxy active this method when client call userService . xxxmethod