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("noMonitoring()")
    public void sys_monitor1() {

    }

    @Pointcut("noMonitoring()")
    public void sys_exceptions1() {

    }


    @Pointcut("if()")
    public static boolean noMonitoring() {
        return isEnabled();
    }

}

@@ -378,36 +378,33 @@
  @Pointcut(%22
-noMonitoring
+ifEnabled
 ()%22)%0A    pub
@@ -452,28 +452,25 @@
 intcut(%22
-noMonitoring
+ifEnabled
 ()%22)%0A   
@@ -563,20 +563,17 @@
 ean 
-noMonitoring
+ifEnabled
 () %7B

refactor - renamed method