AspectMetaData aspectMetaData = SystemLoader.getSystem(uuid).
getAspectMetaData(aspectDef.getName());
List beforeAdvices = aspectDef.getBeforeAdvices();
for (Iterator it2 = beforeAdvices.iterator(); it2.hasNext();) {
AdviceDefinition adviceDef = (AdviceDefinition)it2.next();
CallPointcut pointcut = aspectMetaData.getCallPointcut(
adviceDef.getExpression().getExpression()
);
if (pointcut == null) {
pointcut = new CallPointcut(uuid, adviceDef.getExpression());
aspectMetaData.addCallPointcut(pointcut);
}
pointcut.addBeforeAdvice(adviceDef.getName());
}
List afterAdvices = aspectDef.getAfterAdvices();
for (Iterator it2 = afterAdvices.iterator(); it2.hasNext();) {
AdviceDefinition adviceDef = (AdviceDefinition)it2.next();
CallPointcut pointcut = aspectMetaData.getCallPointcut(
adviceDef.getExpression().getExpression()
);
if (pointcut == null) {
pointcut = new CallPointcut(uuid, adviceDef.getExpression());
aspectMetaData.addCallPointcut(pointcut);
}
pointcut.addAfterAdvice(adviceDef.getName());
}
}
}