com.atlassian.confluence.cache
Class WarnBeforeMethodAdvice

java.lang.Object
  extended by 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.


Constructor Summary
WarnBeforeMethodAdvice(org.apache.log4j.Category log, MessageFormat format)
           
 
Method Summary
 void before(Method method, Object[] args, Object target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarnBeforeMethodAdvice

public WarnBeforeMethodAdvice(org.apache.log4j.Category log,
                              MessageFormat format)
Parameters:
log - the logger to log to
format - a format which gets passed two parameters: the class name and the method name
Method Detail

before

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


Copyright © 2003-2010 Atlassian. All Rights Reserved.