Is there a way to put advice on any method with a parameter of a given type. I'm planning to use this for a class that needs input filtering.
As an example:
@Filtered
class Unsafe {
public void doStuff (String input) { ... }
public void doMoreStuff (String input, int value, String name) { ... }
}
I want to write advice that applies to any string parameter of the methods in this class, such that I can replace their contents with a safe, escaped, version (to prevent e.g. SQL injection).
Is it possible to write such a pointcut?