String name = adviceElement.attributeValue("name");
String type = adviceElement.attributeValue("type");
String bindTo = adviceElement.attributeValue("bind-to");
String adviceName = name;
MethodInfo method = null;
for (Iterator it3 = methodList.iterator(); it3.hasNext();) {
MethodInfo methodCurrent = (MethodInfo) it3.next();
if (aspectDef.isAspectWerkzAspect()) {
if (matchMethodAsAdvice(methodCurrent, name)) {
method = methodCurrent;
break;
}
} else {
// TODO support matchMethodAsAdvice(..) for all aspect models? if so use stuff below
// AspectModel aspectModel = AspectModelManager.getModelFor(aspectDef.getAspectModel());
// if (aspectModel.matchMethodAsAdvice(methodCurrent, name)) {
// method = methodCurrent;
// break;
// }
if (methodCurrent.getName().equals(name)) {
method = methodCurrent;
break;
}
}
}