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


public interface IController<T>

Allows a code advice to intercept a method call when the caller use the MethodProxy class.

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

Method Summary
 T intercept(InvocationTarget<T> target)
          This method is called by the framework before the targeted bean's method.
 

Method Detail

intercept

T intercept(InvocationTarget<T> target)
            throws Exception
This method is called by the framework before the targeted bean's method. Developpers can place here code in order to change the arguments of the method, to control the bean acces or to log the action. Multiple code advice applied to the targeted bean can implements this interface. In this case all the intercept method will be call in turn, folowing the chain of control design pattern.

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


Azuki Framework Copyright © 2006 the original author or authors.