Class Trace


  • public final class Trace
    extends java.lang.Object
    This class works together with the (Abstract)TraceAspect to provide some kind of tracing information.
    Since:
    1.0.3 (30.09.2010)
    Author:
    oliver
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void end​(org.aspectj.lang.JoinPoint joinpoint)
      Logs the trace with a start sign ("<").
      static void end​(org.aspectj.lang.JoinPoint joinpoint, java.lang.Object result)
      Logs the trace with a start sign ("<").
      static void end​(org.aspectj.lang.JoinPoint joinpoint, java.lang.String suffix)
      Logs the trace with a start sign ("<").
      static void start​(org.aspectj.lang.JoinPoint joinpoint)
      Logs the trace with a start sign (">").
      static void throwing​(org.aspectj.lang.JoinPoint joinpoint, java.lang.Throwable t)
      Logs the thrown exception.
      static void trace​(org.aspectj.lang.JoinPoint joinpoint)
      Logs the trace with a "|" sign.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • start

        public static void start​(org.aspectj.lang.JoinPoint joinpoint)
        Logs the trace with a start sign (">").
        Parameters:
        joinpoint - the joinpoint
      • end

        public static void end​(org.aspectj.lang.JoinPoint joinpoint)
        Logs the trace with a start sign ("<").
        Parameters:
        joinpoint - the joinpoint
      • end

        public static void end​(org.aspectj.lang.JoinPoint joinpoint,
                               java.lang.Object result)
        Logs the trace with a start sign ("<").
        Parameters:
        joinpoint - the joinpoint
        result - the result
      • throwing

        public static void throwing​(org.aspectj.lang.JoinPoint joinpoint,
                                    java.lang.Throwable t)
        Logs the thrown exception.
        Parameters:
        joinpoint - the joinpoint
        t - the t
      • end

        public static void end​(org.aspectj.lang.JoinPoint joinpoint,
                               java.lang.String suffix)
        Logs the trace with a start sign ("<").
        Parameters:
        joinpoint - the joinpoint
        suffix - the suffix
      • trace

        public static void trace​(org.aspectj.lang.JoinPoint joinpoint)
        Logs the trace with a "|" sign.
        Parameters:
        joinpoint - the joinpoint