aspectFactory = new AspectFactoryDelegator(cf.getName(), null);
((AspectFactoryWithClassLoader)aspectFactory).setClassLoader(cl);
}
else
{
aspectFactory = new GenericAspectFactory(cf.getName(), null);
((AspectFactoryWithClassLoader)aspectFactory).setClassLoader(cl);
}
AspectDefinition def = new AspectDefinition(cf.getName(), scope, aspectFactory);
manager.addAspectDefinition(def);