|
|||||||||
| 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 | |
|---|---|
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. |
| 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 java.lang.String getLogId(java.lang.reflect.Method method)
WrapperGenerator.Extension
getLogId in interface WrapperGenerator.Extensionmethod - 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.Extensionmsg - 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.Extensioncls - The standard logger name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||