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

    openMon.enable(enable);
  }