I came across the following Spring AOP pointcut in a tutorial:
execution(public * * (..))
it was said that it would cause the execution of all public methods. Is that correct? AFAIK we can only intercept public methods, and that public keyword there is even illegal.
In addition to @Mario’s answer, the spring docs on AOP say the following (emphasis mine):
In addition, the pointcut grammer is as follows:
Wherby the
modifier-patternwould bepublic,protectedetc but is optional…