Class LoggingAdvice
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.services.LoggingAdvice
-
- All Implemented Interfaces:
MethodAdvice
public class LoggingAdvice extends java.lang.Object implements MethodAdvice
-
-
Constructor Summary
Constructors Constructor Description LoggingAdvice(org.slf4j.Logger logger, ExceptionTracker exceptionTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advise(MethodInvocation invocation)
Advise the method, usually invokingMethodInvocation.proceed()
at some point.
-
-
-
Constructor Detail
-
LoggingAdvice
public LoggingAdvice(org.slf4j.Logger logger, ExceptionTracker exceptionTracker)
-
-
Method Detail
-
advise
public void advise(MethodInvocation invocation)
Description copied from interface:MethodAdvice
Advise the method, usually invokingMethodInvocation.proceed()
at some point. The advice is free to inspect and even replace parameters. Most Aspects will then invokeMethodInvocation.proceed()
. The advice may then inspect and replace any checked thrown exceptions. Some advice (for example, caching) may selectively decide to bypass the invocation entirely, and instead invoke some other method or otherwise set a return value or thrown exception.- Specified by:
advise
in interfaceMethodAdvice
- Parameters:
invocation
- identifies the method being invoked, including parameters
-
-