com.liferay.portal.spring.aop
Class LogInterceptor

java.lang.Object
  extended by com.liferay.portal.spring.aop.LogInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice

public class LogInterceptor
extends java.lang.Object
implements org.springframework.aop.AfterReturningAdvice, org.springframework.aop.MethodBeforeAdvice

View Source

Author:
Karthik Sudarshan, Brian Wing Shun Chan

Constructor Summary
LogInterceptor()
           
 
Method Summary
 void afterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
           
 void before(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
           
protected  org.apache.commons.logging.Log getLog(java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogInterceptor

public LogInterceptor()
Method Detail

afterReturning

public void afterReturning(java.lang.Object returnValue,
                           java.lang.reflect.Method method,
                           java.lang.Object[] args,
                           java.lang.Object target)
                    throws java.lang.Throwable
Specified by:
afterReturning in interface org.springframework.aop.AfterReturningAdvice
Throws:
java.lang.Throwable

before

public void before(java.lang.reflect.Method method,
                   java.lang.Object[] args,
                   java.lang.Object target)
            throws java.lang.Throwable
Specified by:
before in interface org.springframework.aop.MethodBeforeAdvice
Throws:
java.lang.Throwable

getLog

protected org.apache.commons.logging.Log getLog(java.lang.reflect.Method method)