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