MethodInvocation instance is passed as an argument of the invoke method of MethodInterceptor. MethodInvocation manages Interceptors and performs the call of sequential execution and the method for an aspect. The instance for an aspect, ReflectionMethod, method arguments, etc. are acquirable through MethodInvocation instance.
MethodInvocation::proceed method.
Interceptors and an actual method are called.
/** * @return mixed */ public function proceed();MethodInvocation::getThis method.
Instance for an aspect is returned.
/** * @return object */ public function getThis();MethodInvocation::getMethod method.
ReflectionMethod of the method to which an aspect is applied is returned.
/** * @return ReflectionMethod */ public function getMethod();MethodInvocation::getTargetClass method.
ReflectionClass of the class to which an aspect is applied is returned.
/** * @return ReflectionClass */ public function getTargetClass();MethodInvocation::getArguments method.
Arguments of the method to which an aspect is applied is returned.
/** * @return array */ public function getArguments();MethodInvocation::getParameter method.
The additional parameter for S2Aop.PHP is returned.
/** * @param string $name * @return mixed */ public function getParameter($name);
© Copyright The Seasar Foundation and the others 2005-2010, all rights reserved. |