return "ClasspathInterceptor";
}
public Object invoke(Invocation invocation) throws Throwable
{
AopHelperAction helperAction = (AopHelperAction) invocation.resolveAnnotation(org.jboss.aophelper.annotation.AopHelperAction.class);
System.out.println("state: "+helperAction.state().name());
System.out.println("option: "+helperAction.option().name());
System.out.println("action: "+helperAction.action().name());
if(helperAction.state().equals(AopState.COMPILE))
{
new CompileManager().performAction(helperAction.action(), helperAction.option());
}
if(helperAction.state().equals(AopState.RUN))
{
new RunManager().performAction(helperAction.action(), helperAction.option());
}
return invocation.invokeNext();
}