JMMF API
pre-release v0.8

fr.umlv.jmmf.hook
Interface AdapterHook

All Superinterfaces:
Hook

public interface AdapterHook
extends Hook

Hook interface specialized for adapter. This hook contains 3 methods that are called during the invocation of an adapter method. The adapter mecanism lookup the best multi-method according to the parameter types of the adapter method. The 3 methods below permit to customize the default lookup mecanism.

preHook is called before the multi-method lookup.
innerHook is called after the multi-method is found and before its invocation.
postHook is called after the invocation of the multi-method.
To register a hook, use the method setHook/getHook of the class AdapterFactory.

Version:
0.5.7
Author:
Remi Forax

Method Summary
 void innerHook(AdapterInnerMessage message)
          This method is called after the multi-method is found and before its invocation.
 void postHook(AdapterPostMessage message)
          This method is called after the invocation of the multi-method.
 void preHook(AdapterPreMessage message)
          This method is called before the multi-method lookup.
 

Method Detail

preHook

public void preHook(AdapterPreMessage message)
This method is called before the multi-method lookup.

innerHook

public void innerHook(AdapterInnerMessage message)
This method is called after the multi-method is found and before its invocation.

postHook

public void postHook(AdapterPostMessage message)
This method is called after the invocation of the multi-method.

JMMF API
pre-release v0.8

Rémi Forax 1999,2000 Université de Marne la Vallée