org.objectweb.proactive.core.component.interception
Interface InputInterceptor


public interface InputInterceptor

This interface must be implemented by controllers that need to intercept incoming functional invocations.
Before executing (in the case of a primitive component) or transferring (in the case of a composite component) a functional request, the beforeInputMethodInvocation method is called, and the afterInputMethodInvocation is called after the execution or transfer of the invocation.
These methods are executed on the controllers of the current component that implement this interface.
The beforeInputMethodInvocation method is called sequentially for each controller in the order they are defined in the controllers configuration file.
The afterInputMethodInvocation method is called sequentially for each controller in the reverse order they are defined in the controllers configuration file.
Example :
if in the controller config file, the list of input interceptors is in this order (the order in the controller config file is from top to bottom) :
InputInterceptor1
InputInterceptor2
This means that an invocation on a server interface will follow this path :
--> caller
--> InputInterceptor1.beforeInputMethodInvocation
--> InputInterceptor2.beforeInputMethodInvocation
--> callee.invocation
--> InputInterceptor2.afterInputMethodInvocation
--> InputInterceptor1.afterInputMethodInvocation

Author:
Matthieu Morel

Method Summary
 void afterInputMethodInvocation(MethodCall methodCall)
          This method is executed when an input invocation has been intercepted, after the execution of the input invocation.
 void beforeInputMethodInvocation(MethodCall methodCall)
          This method is executed when an input invocation is intercepted, before executing the input invocation.
 

Method Detail

beforeInputMethodInvocation

public void beforeInputMethodInvocation(MethodCall methodCall)
This method is executed when an input invocation is intercepted, before executing the input invocation.

Parameters:
methodCall - the method to be executed (MethodCall objects include method parameters and other ProActive-specific infos)

afterInputMethodInvocation

public void afterInputMethodInvocation(MethodCall methodCall)
This method is executed when an input invocation has been intercepted, after the execution of the input invocation.

Parameters:
methodCall - the method that has been executed (MethodCall objects include method parameters and other ProActive-specific infos)


Copyright 2001-2005 INRIA All Rights Reserved.