de.intarsys.tools.functor
Interface IFunctor

All Known Subinterfaces:
INamedFunctor
All Known Implementing Classes:
CommonFunctor, ConstantFunctor, EchoFunctor, NullFunctor

public interface IFunctor

An iconified behavior. The object implementing this interface is the encapsulation of a business logic that can be executed using an IArgs argument.

There is no statement about the concurrency or state restrictions of the IFunctor in this interface. Such restrictions must be stated with the implementation itself.


Method Summary
 java.lang.Object perform(IFunctorCall call)
          Perform the encapsulated business logic in the context defined in "call".
 

Method Detail

perform

java.lang.Object perform(IFunctorCall call)
                         throws FunctorInvocationException
Perform the encapsulated business logic in the context defined in "call".

Parameters:
call - The call context
Returns:
The behavior execution result.
Throws:
FunctorInvocationException - An exception that raised while executing the business logic will be wrapped in a FunctorInvocationException.