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


public interface OutputInterceptor

This interface must be implemented by controllers that need to intercept outgoing functional invocations.
Before executing (in the case of a primitive component) or transferring (in the case of a composite component) an outgoing functional request, the beforeOutputMethodInvocation method is called, and the afterOutputMethodInvocation 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 beforeOutputMethodInvocation method is called sequentially for each controller in the order they are defined in the controllers configuration file.
The afterOutputMethodInvocation 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) :
OutputInterceptor1
OutputInterceptor2
This means that an invocation on a server interface will follow this path :
--> currentComponent
--> OutputInterceptor1.beforeOutputMethodInvocation
--> OutputInterceptor2.beforeOutputMethodInvocation
--> callee.invocation
--> OutputInterceptor2.afterOutputMethodInvocation
--> OutputInterceptor1.afterOutputMethodInvocation

Author:
Matthieu Morel

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

Method Detail

beforeOutputMethodInvocation

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

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

afterOutputMethodInvocation

public void afterOutputMethodInvocation(MethodCall methodCall)
This method is executed when an output invocation has been intercepted, after the execution of the output 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.