Class WrapperGenerator.ExtensionBase

    • Constructor Summary

      Constructors 
      Constructor Description
      ExtensionBase()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLoggerName​(java.lang.Class<?> cls)
      Modify the default logger name if needed.
      java.lang.String getLogId​(java.lang.reflect.Method method)
      Get a message id for this log.
      java.lang.Throwable makeException​(java.lang.String msg, java.lang.reflect.Method method)
      Construct an exception from the message and the exception type.
      • Methods inherited from class java.lang.Object

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

      • ExtensionBase

        public ExtensionBase()
    • Method Detail

      • getLogId

        public java.lang.String getLogId​(java.lang.reflect.Method method)
        Description copied from interface: WrapperGenerator.Extension
        Get a message id for this log.
        Specified by:
        getLogId in interface WrapperGenerator.Extension
        Parameters:
        method - The method defining this log.
        Returns:
        The message id.
      • makeException

        public java.lang.Throwable makeException​(java.lang.String msg,
                                                 java.lang.reflect.Method method)
        Description copied from interface: WrapperGenerator.Extension
        Construct an exception from the message and the exception type. The method provides access to any additional annotations that may be needed.
        Specified by:
        makeException in interface WrapperGenerator.Extension
        Parameters:
        msg - The message to use in the exception.
        method - The method creating the exception.
      • getLoggerName

        public java.lang.String getLoggerName​(java.lang.Class<?> cls)
        Description copied from interface: WrapperGenerator.Extension
        Modify the default logger name if needed.
        Specified by:
        getLoggerName in interface WrapperGenerator.Extension
        Parameters:
        cls - The standard logger name
        Returns:
        A possibly updated logger name