org.springframework.aop
Interface MethodBeforeAdvice
- All Superinterfaces:
- org.aopalliance.aop.Advice, BeforeAdvice
- public interface MethodBeforeAdvice
- extends BeforeAdvice
Advice invoked before a method is invoked. Such advices cannot
prevent the method call proceeding, unless they throw a
Throwable.
- Version:
- $Id: MethodBeforeAdvice.java,v 1.3 2004/03/18 02:46:07 trisberg Exp $
- Author:
- Rod Johnson
Method Summary |
void |
before(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object target)
Callback before a given method is invoked |
before
public void before(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object target)
throws java.lang.Throwable
- Callback before a given method is invoked
- Parameters:
m
- method being invokedargs
- arguments to the methodtarget
- target of the method invocation. May be null
- Throws:
java.lang.Throwable
- if this object wishes to abort the
call. Any exception thrown will be returned to the caller
if it's allowed by the method signature. Otherwise
the exception will be wrapped as a runtime exception.
Copyright (C) 2003-2004 The Spring Framework Project.