* @param definition the AspectWerkz definition
*/
private static void registerSetPointcuts(final String uuid,
final AspectWerkzDefinitionImpl definition) {
for (Iterator it = definition.getAspectDefinitions().iterator(); it.hasNext();) {
AspectDefinition aspectDef = (AspectDefinition)it.next();
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()