AspectManager domain = AspectManager.instance();
try
{
AdviceBinding binding = new AdviceBinding("execution(* @" + TestClassAnnotation.class.getName() + "->*(..))", null);
binding.addInterceptorFactory(new GenericInterceptorFactory(TestClassAspect.class));
domain.addBinding(binding);
}
catch (Exception e)
{
throw new RuntimeException("Error setting up advices ", e);