I am working on an outdated application that uses Spring AOP (namely ProxyFactoryBean ).
I need to add an aspect around the method of a particular class. This class is not a bean. The expression pointcut AspecjJ will be as follows: execution(* xyz.package.Class.method())
I created MethodInterceptor and AspectJExpressionPointcut , but I donβt know how to make these two work together.
EDIT :
I do not have source code for this class, this is a third-party library. Instances of this class are not created by me, neither in the source code, nor in the Spring configuration, like beans. It is used inside the library.
Any help was appreciated.
source share