Is it possible to intercept mehtod of screent controller using Spring AOP?

Hi,

The screen controller is not a standard spring bean.
Is it possible to intercept mehtod of screent controller using Spring AOP?

Hi,

I believe it is nearly impossible with AOP at all, since various methods of a screen controller called directly and there is no viable pointcut to intercept them.

Why do you need this? What task are you trying to solve?

Hi Yuriy,

Thanks for your reply.

A developer(chinese forum) asked how to intercept method of screen controller using Spring AOP forum,he want to implement a common log functionality. ( https://forum.cuba-platform.cn/t/topic/363)

Is there a way to implement AOP in screen controller?

By the way, if they try to implement Logger injection, it is already supported in screens and beans:

Just define logger field:

@Inject
private Logger log;

Hi Yuriy,

Thanks for your more information.