I am using custom annotation with aspectj.
@TestLoggingAnnotation(setMessage = "I want to set value here") public void get() { String retString = null; String message = "DEFAULT"; if (message == "DEFAULT") { retString = "Default Logging"; } else { retString = "Custom Logging"; } }
The above is simple and rough. My requirement is that I want to pass the parameter value after the method.
In my case, I want to set retString to setMessage in a user parameter.
source share