Class MethodLogger


  • public final class MethodLogger
    extends Object
    Logs method calls.

    It is an AspectJ aspect and you are not supposed to use it directly. It is instantiated by AspectJ runtime framework when your code is annotated with Loggable annotation.

    Since:
    0.7.2
    • Constructor Detail

      • MethodLogger

        public MethodLogger()
        Public ctor.
    • Method Detail

      • wrapClass

        public Object wrapClass​(org.aspectj.lang.ProceedingJoinPoint point)
                         throws Throwable
        Log methods in a class.

        Try NOT to change the signature of this method, in order to keep it backward compatible.

        Parameters:
        point - Joint point
        Returns:
        The result of call
        Throws:
        Throwable - If something goes wrong inside
      • wrapMethod

        public Object wrapMethod​(org.aspectj.lang.ProceedingJoinPoint point)
                          throws Throwable
        Log individual methods.

        Try NOT to change the signature of this method, in order to keep it backward compatible.

        Parameters:
        point - Joint point
        Returns:
        The result of call
        Throws:
        Throwable - If something goes wrong inside