Package org.glassfish.pfl.basic.logex
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 Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getLogId
java.lang.String getLogId(java.lang.reflect.Method method)
Get a message id for this log.- Parameters:
method
- The method defining this log.- Returns:
- The message id.
-
makeException
java.lang.Throwable makeException(java.lang.String msg, java.lang.reflect.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
java.lang.String getLoggerName(java.lang.Class<?> cls)
Modify the default logger name if needed.- Parameters:
cls
- The standard logger name- Returns:
- A possibly updated logger name
-
-