com.atlassian.confluence.cache
Class WarnBeforeMethodAdvice
java.lang.Object
com.atlassian.confluence.cache.WarnBeforeMethodAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice
- public class WarnBeforeMethodAdvice
- extends Object
- implements org.springframework.aop.MethodBeforeAdvice
Logs a warning before running the intercepted method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WarnBeforeMethodAdvice
public WarnBeforeMethodAdvice(org.apache.log4j.Category log,
MessageFormat format)
- Parameters:
log
- the logger to log toformat
- a format which gets passed two parameters: the class name and the method name
before
public void before(Method method,
Object[] args,
Object target)
- Specified by:
before
in interface org.springframework.aop.MethodBeforeAdvice