How to modify method arguments before invocation?

View: New views
1 Messages — Rating Filter:   Alert me  

How to modify method arguments before invocation?

by niaouli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am a new user of AspectJ, currently adding some aspects to my Spring beans, thanks to annotations.
I wonder if it is possible to modify arguments (even immutable ones, String for example), in order to format/normalize them, before a method is invoked?

@FormatName void addUser(String name);
OR
void addUser(@FormatName String name);

Thanks,