I am trying to access the custom annotation values from jointCut. But I couldn't find a way.
My sample code :
@ComponentValidation(input1="input1", typeOfRule="validation", logger=Log.EXCEPTION)
public boolean validator(Map<String,String> mapStr) {
//blah blah
}
Trying to access @Aspect
class.
But, i didnt see any scope to access values.
Way i am trying to access is below code
CodeSignature codeSignature = (CodeSignature) joinPoint.getSignature();
String[] names = codeSignature.getParameterNames();
MethodSignature methodSignature = (MethodSignature) joinPoint.getStaticPart().getSignature();
Annotation[][] annotations = methodSignature.getMethod().getParameterAnnotations();
Object[] values = joinPoint.getArgs();
i didnt see any value returns input = input1. how to achieve this.