package org.automon.aspects;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Contains 'if()' which is not compatible with Spring so this should be used when using AspectJ directly.  Note this allows for disabling of
 * AutoMon via the pointcut language.
 */
@Aspect
public abstract class AspectJBase extends AutomonAspect {

    @Pointcut("within(java.lang.Object+)")
    public void sys_monitor() {

    }

    @Pointcut("within(java.lang.Object+)")
    public void sys_exceptions() {

    }


//    @Pointcut("if()")
//    public static boolean ifEnabled() {
//        return AutomonAspect.isEnabled();
//    }

}

@@ -540,126 +540,6 @@
  %7D%0A%0A
-%0A//    @Pointcut(%22if()%22)%0A//    public static boolean ifEnabled() %7B%0A//        return AutomonAspect.isEnabled();%0A//    %7D%0A%0A
 %7D%0A

refactor - removed stale comment