final String uuid,
final SystemDefinition definition) {
for (Iterator it = definition.getAspectDefinitions().iterator(); it.hasNext();) {
AspectDefinition aspectDef = (AspectDefinition)it.next();
PointcutManager pointcutManager = SystemLoader.getSystem(uuid).
getAspectManager().getPointcutManager(aspectDef.getName());
for (Iterator it2 = aspectDef.getAroundAdvices().iterator(); it2.hasNext();) {
AdviceDefinition adviceDef = (AdviceDefinition)it2.next();
if (adviceDef.getExpression().isOfType(PointcutType.EXECUTION)) {
ExecutionPointcut pointcut = pointcutManager.getExecutionPointcut(
adviceDef.getExpression().getExpression()
);
if (pointcut == null) {
pointcut = new ExecutionPointcut(uuid, adviceDef.getExpression());
pointcutManager.addExecutionPointcut(pointcut);
}
pointcut.addAroundAdvice(adviceDef.getName());
}
}
for (Iterator it2 = aspectDef.getBeforeAdvices().iterator(); it2.hasNext();) {
AdviceDefinition adviceDef = (AdviceDefinition)it2.next();
if (adviceDef.getExpression().isOfType(PointcutType.EXECUTION)) {
ExecutionPointcut pointcut = pointcutManager.getExecutionPointcut(
adviceDef.getExpression().getExpression()
);
if (pointcut == null) {
pointcut = new ExecutionPointcut(uuid, adviceDef.getExpression());
pointcutManager.addExecutionPointcut(pointcut);
}
pointcut.addBeforeAdvice(adviceDef.getName());
}
}
for (Iterator it2 = aspectDef.getAfterAdvices().iterator(); it2.hasNext();) {
AdviceDefinition adviceDef = (AdviceDefinition)it2.next();
if (adviceDef.getExpression().isOfType(PointcutType.EXECUTION)) {
ExecutionPointcut pointcut = pointcutManager.getExecutionPointcut(
adviceDef.getExpression().getExpression()
);
if (pointcut == null) {
pointcut = new ExecutionPointcut(uuid, adviceDef.getExpression());
pointcutManager.addExecutionPointcut(pointcut);
}
pointcut.addAfterAdvice(adviceDef.getName());
}
}
}