|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.intarsys.tools.functor.CommonFunctor
de.intarsys.tools.functor.ConstantFunctor
public class ConstantFunctor
A common utility IFunctor returning a constant value.
| Constructor Summary | |
|---|---|
ConstantFunctor(java.lang.Object constant)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getConstant()
|
java.lang.Object |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantFunctor(java.lang.Object constant)
| Method Detail |
|---|
public java.lang.Object getConstant()
public java.lang.Object perform(IFunctorCall call)
throws FunctorInvocationException
IFunctor
call - The call context
FunctorInvocationException - An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||