- All Implemented Interfaces:
NodeBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the method is a void method, or the method returnsnull, this can be used to specify what value should be passed to runtime when the method returns.defaultOutcome(String outcome) If the method is a void method, or the method returnsnull, this can be used to specify what value should be passed to runtime when the method returns.Set the method expression of this method call node.expression(String methodExpression) Set the method expression of this method call node.expression(String methodExpression, Class[] paramTypes) Set the method expression of this method call node.Mark this node as the start node in the flow.parameters(List<Parameter> parameters) Set the parameters of the method call node.
-
Constructor Details
-
MethodCallBuilderImpl
-
-
Method Details
-
defaultOutcome
Description copied from class:MethodCallBuilderIf the method is a void method, or the method returns
null, this can be used to specify what value should be passed to runtime when the method returns.- Specified by:
defaultOutcomein classMethodCallBuilder- Parameters:
outcome- AValueExpressionString representing the default outcome, only used if the method is a void method or returnsnull.- Returns:
- the builder instance
-
defaultOutcome
Description copied from class:MethodCallBuilderIf the method is a void method, or the method returns
null, this can be used to specify what value should be passed to runtime when the method returns.- Specified by:
defaultOutcomein classMethodCallBuilder- Parameters:
ve- AValueExpressionrepresenting the default outcome, only used if the method is a void method or returnsnull.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
methodExpression- TheMethodExpressionString to invoke.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
methodExpression- TheMethodExpressionto invoke.paramTypes- the types of the parameters to the method.- Returns:
- the builder instance
-
parameters
Description copied from class:MethodCallBuilderSet the parameters of the method call node.
- Specified by:
parametersin classMethodCallBuilder- Parameters:
parameters- the parameters to pass to the method when it is invoked.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
me- TheMethodExpressionto invoke.- Returns:
- the builder instance
-
markAsStartNode
Description copied from interface:NodeBuilderMark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.
- Specified by:
markAsStartNodein interfaceNodeBuilder- Specified by:
markAsStartNodein classMethodCallBuilder- Returns:
- the builder instance
-