Interface WrapperGenerator.Extension

All Known Implementing Classes:
WrapperGenerator.ExtensionBase
Enclosing class:
WrapperGenerator

public static interface WrapperGenerator.Extension
Extension API available to override the default behavior of the WrapperGenerator.
  • Method Details

    • getLogId

      String getLogId(Method method)
      Get a message id for this log.
      Parameters:
      method - The method defining this log.
      Returns:
      The message id.
    • makeException

      Throwable makeException(String msg, Method method)
      Construct an exception from the message and the exception type. The method provides access to any additional annotations that may be needed.
      Parameters:
      msg - The message to use in the exception.
      method - The method creating the exception.
    • getLoggerName

      String getLoggerName(Class<?> cls)
      Modify the default logger name if needed.
      Parameters:
      cls - The standard logger name
      Returns:
      A possibly updated logger name