Package org.springframework.aop
Interface MethodBeforeAdvice
- All Superinterfaces:
Advice
,BeforeAdvice
- All Known Implementing Classes:
AspectJMethodBeforeAdvice
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:
-
Method Summary
-
Method Details
-
before
Callback before a given method is invoked.- Parameters:
method
- the method being invokedargs
- the arguments to the methodtarget
- the target of the method invocation. May benull
.- 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.
-