Class LoggingInterceptor
- java.lang.Object
-
- 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
Constructors Constructor Description LoggingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterReturning(Object returnValue, Method method, Object[] args, Object target)
void
afterThrowing(Method method, Object[] args, Object target, Throwable exception)
protected String
arrayToString(Object[] objects)
Returns a string representation of the given array.void
before(Method method, Object[] args, Object target)
protected String
toString(Object object)
Returns a string representation of the given object.
-
-
-
Method Detail
-
before
public void before(Method method, Object[] args, Object target) throws Throwable
- Specified by:
before
in interfaceorg.springframework.aop.MethodBeforeAdvice
- Throws:
Throwable
-
afterReturning
public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
- Specified by:
afterReturning
in interfaceorg.springframework.aop.AfterReturningAdvice
- Throws:
Throwable
-
afterThrowing
public void afterThrowing(Method method, Object[] args, Object target, Throwable exception)
-
toString
protected String toString(Object object)
Returns a string representation of the given object. This is useful when third-party objects do not havetoString()
implementations that meet your needs.
-
-