Mark Spritzler wrote:So then what exactly do you mean by middle parameter?
Middle means anything except of first and last - no matter how many parameters are present.
Creating annotation and marking all methods that fit my requirement is a solution with some limitations.
What if there are a lot of methods? If my pattern changes I need to look through all annotated methods.
What if these methods are not in my classes (that's why I cannot edit them).
So I want to do it in by one pointcut without editing classes.
Besides, this information can be successfully calculated without any marking. When argument is first and last it is very easy.
Why this cannot be easy for middle argument?