Class JavaMethodOperationExecutorStrategy
java.lang.Object
org.bonitasoft.engine.core.operation.impl.JavaMethodOperationExecutorStrategy
- All Implemented Interfaces:
OperationExecutorStrategy
- Direct Known Subclasses:
BusinessDataJavaMethodOperationExecutorStrategy
public abstract class JavaMethodOperationExecutorStrategy
extends Object
implements OperationExecutorStrategy
This stategy is not used directly,
BusinessDataJavaMethodOperationExecutorStrategy is first executed and then delegate to that one.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeNewValueForLeftOperand(SOperation operation, Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue) Calculates the new value of the left operand base of right operand expression valueprotected StringextractMethodName(SOperation operation) protected ObjectextractObjectToInvokeFromContext(SOperation operation, SExpressionContext expressionContext) protected StringextractParameterType(SOperation operation) booleanDetermines if the operation right value should be persisted when the value is evaluated to null.
-
Field Details
-
TYPE_JAVA_METHOD
- See Also:
-
-
Constructor Details
-
JavaMethodOperationExecutorStrategy
public JavaMethodOperationExecutorStrategy()
-
-
Method Details
-
computeNewValueForLeftOperand
public Object computeNewValueForLeftOperand(SOperation operation, Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException Description copied from interface:OperationExecutorStrategyCalculates the new value of the left operand base of right operand expression value- Specified by:
computeNewValueForLeftOperandin interfaceOperationExecutorStrategy- Parameters:
operation- the operation in progressvalueToSetObjectWith- result of the evaluation of right operand expressionexpressionContext- the expression contextshouldPersistValue- true if the right operand must be persisted (Business Data)- Returns:
- the new value to set the left operand with
- Throws:
SOperationExecutionException
-
extractParameterType
-
extractMethodName
-
extractObjectToInvokeFromContext
protected Object extractObjectToInvokeFromContext(SOperation operation, SExpressionContext expressionContext) throws SOperationExecutionException - Throws:
SOperationExecutionException
-
getOperationType
- Specified by:
getOperationTypein interfaceOperationExecutorStrategy
-
shouldPersistOnNullValue
public boolean shouldPersistOnNullValue()Description copied from interface:OperationExecutorStrategyDetermines if the operation right value should be persisted when the value is evaluated to null.- Specified by:
shouldPersistOnNullValuein interfaceOperationExecutorStrategy- Returns:
- true if the the evaluated right value should be persisted; false otherwise.
-