public class LoggingInterceptor extends Object implements org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.ThrowsAdvice
Do not use this in production! It logs passwords in plain text!
Constructor and Description |
---|
LoggingInterceptor() |
Modifier and Type | Method and 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.
|
public void before(Method method, Object[] args, Object target) throws Throwable
before
in interface org.springframework.aop.MethodBeforeAdvice
Throwable
public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
afterReturning
in interface org.springframework.aop.AfterReturningAdvice
Throwable
public void afterThrowing(Method method, Object[] args, Object target, Throwable exception)
protected String toString(Object object)
toString()
implementations that meet your needs.Copyright © 2019 Hitachi Vantara. All rights reserved.