org.pentaho.platform.engine.security
Class LoggingInterceptor

java.lang.Object
  extended by org.pentaho.platform.engine.security.LoggingInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.ThrowsAdvice

public class LoggingInterceptor
extends Object
implements org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.ThrowsAdvice

Logger that uses AOP to log debugging information.

Do not use this in production! It logs passwords in plain text!

Author:
mlowery

Constructor Summary
LoggingInterceptor()
           
 
Method Summary
 void afterReturning(Object returnValue, Method method, Object[] args, Object target)
           
 void afterThrowing(Method method, Object[] args, Object target, Throwable exception)
           
 void before(Method method, Object[] args, Object target)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInterceptor

public LoggingInterceptor()
Method Detail

before

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

afterReturning

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

afterThrowing

public void afterThrowing(Method method,
                          Object[] args,
                          Object target,
                          Throwable exception)