|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.basic.logex.WrapperGenerator.ExtensionBase
public abstract static class WrapperGenerator.ExtensionBase
Convenience base class for implementations of Extension that don't need to override every method.
| Constructor Summary | |
|---|---|
WrapperGenerator.ExtensionBase()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperGenerator.ExtensionBase()
| Method Detail |
|---|
public String getLogId(Method method)
WrapperGenerator.Extension
getLogId in interface WrapperGenerator.Extensionmethod - The method defining this log.
public Throwable makeException(String msg,
Method method)
WrapperGenerator.Extension
makeException in interface WrapperGenerator.Extensionmsg - The message to use in the exception.method - The method creating the exception.public String getLoggerName(Class<?> cls)
WrapperGenerator.Extension
getLoggerName in interface WrapperGenerator.Extensioncls - The standard logger name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||