org.apache.shiro.aop
Interface MethodInvocation


public interface MethodInvocation

3rd-party API independent representation of a method invocation. This is needed so Shiro can support other MethodInvocation instances from other AOP frameworks/APIs.

Since:
0.1

Method Summary
 Object[] getArguments()
          Returns the (possibly null) arguments to be supplied to the method invocation.
 Method getMethod()
          Returns the actual Method to be invoked.
 Object getThis()
          Returns the object that holds the current joinpoint's static part.
 Object proceed()
          Continues the method invocation chain, or if the last in the chain, the method itself.
 

Method Detail

proceed

Object proceed()
               throws Throwable
Continues the method invocation chain, or if the last in the chain, the method itself.

Returns:
the result of the Method invocation.
Throws:
Throwable - if the method or chain throws a Throwable

getMethod

Method getMethod()
Returns the actual Method to be invoked.

Returns:
the actual Method to be invoked.

getArguments

Object[] getArguments()
Returns the (possibly null) arguments to be supplied to the method invocation.

Returns:
the (possibly null) arguments to be supplied to the method invocation.

getThis

Object getThis()
Returns the object that holds the current joinpoint's static part. For instance, the target object for an invocation.

Returns:
the object that holds the current joinpoint's static part.
Since:
1.0


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.