public abstract static class WrapperGenerator.ExtensionBase extends java.lang.Object implements WrapperGenerator.Extension
Constructor and Description |
---|
ExtensionBase() |
Modifier and Type | Method and 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.
|
public java.lang.String getLogId(java.lang.reflect.Method method)
WrapperGenerator.Extension
getLogId
in interface WrapperGenerator.Extension
method
- The method defining this log.public java.lang.Throwable makeException(java.lang.String msg, java.lang.reflect.Method method)
WrapperGenerator.Extension
makeException
in interface WrapperGenerator.Extension
msg
- The message to use in the exception.method
- The method creating the exception.public java.lang.String getLoggerName(java.lang.Class<?> cls)
WrapperGenerator.Extension
getLoggerName
in interface WrapperGenerator.Extension
cls
- The standard logger name