aspectFactory = new GenericAspectFactory(clazz, element);
((AspectFactoryWithClassLoader)aspectFactory).setClassLoader(cl);
}
else
{
aspectFactory = new AspectFactoryDelegator(factory, element);
((AspectFactoryWithClassLoader)aspectFactory).setClassLoader(cl);
}
AspectDefinition def = new AspectDefinition(name, scope, aspectFactory);
manager.addAspectDefinition(def);