org.apache.tapestry5.ioc.internal.services
Class LoggingAdvice

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.LoggingAdvice
All Implemented Interfaces:
MethodAdvice

public class LoggingAdvice
extends java.lang.Object
implements MethodAdvice


Constructor Summary
LoggingAdvice(org.slf4j.Logger logger, ExceptionTracker exceptionTracker)
           
 
Method Summary
 void advise(Invocation invocation)
          Allows the Aspect to advise the invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingAdvice

public LoggingAdvice(org.slf4j.Logger logger,
                     ExceptionTracker exceptionTracker)
Method Detail

advise

public void advise(Invocation invocation)
Description copied from interface: MethodAdvice
Allows the Aspect to advise the invocation. The Aspect is free to inspect and even replace parameters. Most Aspects will then invoke Invocation.proceed(). The Aspect may then inspect and replace any checked thrown exceptions. Some Aspects (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 interface MethodAdvice
Parameters:
invocation - to advise


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.