addAspectBinding(manager, index, scope, aspectClass, null, pointcut);
}
protected void addAspectBinding(AspectManager manager, int index, Scope scope, String aspectClass, String adviceName, String pointcut) throws ParseException
{
AspectDefinition def = new AspectDefinition("aspect" + index, scope, new GenericAspectFactory(aspectClass, null));
InterceptorFactory advice = (adviceName != null) ? new AdviceFactory(def, "advice") : new ScopedInterceptorFactory(def);
PointcutExpression pc = new PointcutExpression("pc2" + index, pointcut);
InterceptorFactory[] interceptors = {advice};
AdviceBinding binding = new AdviceBinding("binding" + index, pc, null, null, interceptors);