intarsys runtime library

de.intarsys.tools.functor
Interface IFunctor<T>

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

public interface IFunctor<T>

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
 T perform(IFunctorCall call)
          Perform the encapsulated business logic in the context defined in "call".
 

Method Detail

perform

T 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.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.