public void afterThrowingAdvice() throws Exception { openMon.exception("com.stevesouza.myException"); }
public boolean isEnabled() { return (openMon == null) ? false : openMon.isEnabled(); }
// && if (isEnabled()) public void aroundAdvice() throws Exception { Object mon = openMon.start("com.stevesouza.myMethod"); Thread.sleep(100); openMon.stop(mon); }
public void enable(boolean enable) { if (openMon == null) return; openMon.enable(enable); }