if (aroundAnnotation != null) {
final String expression = aroundAnnotation.pointcut();
final String adviceName = AspectAnnotationParser.getMethodPointcutCallSignature(
method.getName(), aroundAnnotation
);
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
adviceName,
aroundAnnotation.getType(),
expression,
null,
aspectName,
aspectClassName,
method,
methodIndex,
aspectDef
);
aspectDef.addAroundAdvice(adviceDef);
}
}
List beforeAnnotations = Annotations.getAnnotations(AnnotationC.ANNOTATION_BEFORE, method);
for (Iterator iterator = beforeAnnotations.iterator(); iterator.hasNext();) {
BeforeAnnotationProxy beforeAnnotation = (BeforeAnnotationProxy) iterator.next();
if (beforeAnnotation != null) {
final String expression = beforeAnnotation.pointcut();
final String adviceName = AspectAnnotationParser.getMethodPointcutCallSignature(
method.getName(), beforeAnnotation
);
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
adviceName,
beforeAnnotation.getType(),
expression,
null,
aspectName,
aspectClassName,
method,
methodIndex,
aspectDef
);
aspectDef.addBeforeAdvice(adviceDef);
}
}
List afterAnnotations = Annotations.getAnnotations(AnnotationC.ANNOTATION_AFTER, method);
for (Iterator iterator = afterAnnotations.iterator(); iterator.hasNext();) {
AfterAnnotationProxy afterAnnotation = (AfterAnnotationProxy) iterator.next();
if (afterAnnotation != null) {
final String expression = afterAnnotation.pointcut();
final String adviceName = AspectAnnotationParser.getMethodPointcutCallSignature(
method.getName(), afterAnnotation
);
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
adviceName,
afterAnnotation.getType(),
expression,
afterAnnotation.getSpecialArgumentType(),
aspectName,