You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because some functions may need to run before and after the entry point. Although you can use Context to pass parameters between contexts, it is cumbersome to use and writing code is not smooth enough.
The text was updated successfully, but these errors were encountered:
In our design, we use @Advice.OnMethodEnter and @Advice.OnMethodExit to achieve the @around effect, which is done by the interface encapsulated by bytebuddy. Another point is that it is common to enhance the same method multiple times or mount multiple Sermants. We also need to manage the execution order of the before method and after method that are enhanced multiple times. So this issue is not suitable for current situation.
kkf1
changed the title
是否可以在 Interceptor 顶层接口中添加一个 around 接口。类似AOP中的@Around 注解
Is it possible to add an 'around' interface to the Interceptor top-level interface. Similar to the @Around annotation in AOP
Apr 13, 2024
What would you like to be added?
Is it possible to add an around interface to the Interceptor top-level interface. Similar to the @around annotation in AOP.
Similar to the following:
Why is this needed?
Because some functions may need to run before and after the entry point. Although you can use Context to pass parameters between contexts, it is cumbersome to use and writing code is not smooth enough.
The text was updated successfully, but these errors were encountered: