Wormhole pattern w. AspectJ: How to get caller method name?

前端 未结 2 537
攒了一身酷
攒了一身酷 2021-01-07 15:29

Using the wormhole pattern with AspectJ, is there a way that the executing method name can be seen in the wormhole advice?

I have an example where a service class (C

2条回答
  •  青春惊慌失措
    2021-01-07 15:43

    the static join point info (thisJoinPointStaticPart) should contain the proper method name. but i believe it will only happen when the modelGetter is set to call rather than execution

    https://www.eclipse.org/aspectj/doc/next/runtime-api/org/aspectj/lang/JoinPoint.StaticPart.html

提交回复
热议问题