public class ConstantFunctor extends CommonFunctor
IFunctor
returning a constant value.Constructor and Description |
---|
ConstantFunctor(java.lang.Object constant) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstant() |
java.lang.Object |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
|
public java.lang.Object getConstant()
public java.lang.Object perform(IFunctorCall call) throws FunctorInvocationException
IFunctor
call
- The call contextFunctorInvocationException
- An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.