Package de.intarsys.tools.functor
Class ConstantFunctor
- java.lang.Object
-
- de.intarsys.tools.functor.CommonFunctor
-
- de.intarsys.tools.functor.ConstantFunctor
-
- All Implemented Interfaces:
IFunctor
public class ConstantFunctor extends CommonFunctor
A common utilityIFunctor
returning a constant value.
-
-
Constructor Summary
Constructors Constructor Description ConstantFunctor(java.lang.Object constant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getConstant()
java.lang.Object
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
-
-
-
Method Detail
-
getConstant
public java.lang.Object getConstant()
-
perform
public java.lang.Object perform(IFunctorCall call) throws FunctorInvocationException
Description copied from interface:IFunctor
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.
-
-