biz.hammurapi.dispatch
Interface InvocationHandler


public interface InvocationHandler

Handler to invoke methods with one argument.

Author:
Pavel Vlasov

Method Summary
 java.lang.Class[] getFactTypes()
          This method is used for backward reasoning.
 java.lang.Class getParameterType()
          This method is used to build invocation network.
 void invoke(java.lang.Object arg, ResultConsumer resultConsumer)
          Invokes target method.
 

Method Detail

invoke

void invoke(java.lang.Object arg,
            ResultConsumer resultConsumer)
            throws java.lang.Throwable
Invokes target method. Passes returned value(s) to result consumer. The target "method" might be invoked multiple times, e.g. in composite invocation handler scenario.

Parameters:
parameter -
resultConsumer -
Throws:
java.lang.Throwable

getParameterType

java.lang.Class getParameterType()
This method is used to build invocation network.

Returns:
Invocation parameter type. Null if parameter type is unknown.

getFactTypes

java.lang.Class[] getFactTypes()
This method is used for backward reasoning.

Returns:
Types of facts produced (returned or posted) by this handler.


Copyright © 2005 Hammurapi Group. All Rights Reserved.