|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.grimoire.logging.annotations.MethodLoggingAdvice
public class MethodLoggingAdvice
Intercepts method calls and logs the approprate messages for each of the logging annotations in this package.
LogBefore,
LogReturn,
LogException| Constructor Summary | |
|---|---|
MethodLoggingAdvice()
|
|
| Method Summary | |
|---|---|
void |
logBefore(JoinPoint call,
LogBefore logAnnotation)
Emits the log message from a LogBefore annotation, using the
method call's parameter list as the formatting parameters. |
void |
logException(JoinPoint call,
LogException logAnnotation,
Throwable exception)
Emits the log message from a LogException annotation, including
the method call's thrown exception. |
void |
logReturn(JoinPoint call,
LogReturn logAnnotation,
Object returnValue)
Emits the log message from a LogReturn annotation, using the
method's return value as the (sole) formatting parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodLoggingAdvice()
| Method Detail |
|---|
public void logBefore(JoinPoint call,
LogBefore logAnnotation)
LogBefore annotation, using the
method call's parameter list as the formatting parameters.
call - the method call being intercepted.logAnnotation - the log annotation.
public void logReturn(JoinPoint call,
LogReturn logAnnotation,
Object returnValue)
LogReturn annotation, using the
method's return value as the (sole) formatting parameter.
call - the method call being intercepted.logAnnotation - the log annotation.
public void logException(JoinPoint call,
LogException logAnnotation,
Throwable exception)
LogException annotation, including
the method call's thrown exception.
call - the method call being intercepted.logAnnotation - the log annotation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||