org.azuki.framework.injection
Interface InvocationTarget<T>


public interface InvocationTarget<T>

Provides informations on the invocation process currently performed on a bean method.

Author:
Robert Bakic (robert.bakic@gmail.com)

Method Summary
 Object getBean()
          Gets the instance of the targeted bean.
 String getMethodName()
          Gets the name of the method currently called.
 Object[] getParameters()
          Gets the parameters arguments passed in this method call.
 T proceed()
          The code advice must called this method in order to forward the method call to the destination object or to the next code advice in the chain of control.
 void setParameters(Object[] args)
          Changes the parameters arguments passed to the method.
 

Method Detail

getBean

Object getBean()
Gets the instance of the targeted bean.

Returns:
The bean instance

getMethodName

String getMethodName()
Gets the name of the method currently called.

Returns:
The method name

getParameters

Object[] getParameters()
Gets the parameters arguments passed in this method call.

Returns:
The method arguments

setParameters

void setParameters(Object[] args)
Changes the parameters arguments passed to the method.

Parameters:
args - The new parameters arguments.

proceed

T proceed()
          throws Exception
The code advice must called this method in order to forward the method call to the destination object or to the next code advice in the chain of control.

Returns:
The result of the targeted method call.
Throws:
Exception


Azuki Framework Copyright © 2006 the original author or authors.