public abstract static class WrapperGenerator.ExtensionBase extends Object implements WrapperGenerator.Extension
Constructor and Description |
---|
WrapperGenerator.ExtensionBase() |
Modifier and Type | Method and Description |
---|---|
String |
getLoggerName(Class<?> cls)
Modify the default logger name if needed.
|
String |
getLogId(Method method)
Get a message id for this log.
|
Throwable |
makeException(String msg,
Method method)
Construct an exception from the message and the exception type.
|
public String getLogId(Method method)
WrapperGenerator.Extension
getLogId
in interface WrapperGenerator.Extension
method
- The method defining this log.public Throwable makeException(String msg, Method method)
WrapperGenerator.Extension
makeException
in interface WrapperGenerator.Extension
msg
- The message to use in the exception.method
- The method creating the exception.public String getLoggerName(Class<?> cls)
WrapperGenerator.Extension
getLoggerName
in interface WrapperGenerator.Extension
cls
- The standard logger nameCopyright © 2017 Oracle. All rights reserved.