站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

MethodBeforeAdvice (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.aop
Interface MethodBeforeAdvice

All Superinterfaces:
Advice, BeforeAdvice
All Known Implementing Classes:
AspectJMethodBeforeAdvice

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.

Author:
Rod Johnson
See Also:
AfterReturningAdvice, ThrowsAdvice

Method Summary
 void before(Method method, Object[] args, Object target)
          Callback before a given method is invoked.
 

Method Detail

before

void before(Method method,
            Object[] args,
            Object target)
            throws Throwable
Callback before a given method is invoked.

Parameters:
method - method being invoked
args - arguments to the method
target - target of the method invocation. May be null.
Throws:
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.

The Spring Framework

Copyright © 2002-2007 The Spring Framework.