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 utility IFunctor returning a constant value.
  • Constructor Details

    • ConstantFunctor

      public ConstantFunctor(Object constant)
  • Method Details

    • getConstant

      public Object getConstant()
    • perform

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