public class MethodCallBuilderImpl extends MethodCallBuilder
Constructor and Description |
---|
MethodCallBuilderImpl(FlowBuilderImpl root,
String id) |
Modifier and Type | Method and Description |
---|---|
MethodCallBuilder |
defaultOutcome(String outcome)
If the method is a void method, or the
method returns |
MethodCallBuilder |
defaultOutcome(javax.el.ValueExpression ve)
If the method is a void method, or the
method returns |
MethodCallBuilder |
expression(javax.el.MethodExpression me)
Set the method expression of this method call node. |
MethodCallBuilder |
expression(String methodExpression)
Set the method expression of this method call node. |
MethodCallBuilder |
expression(String methodExpression,
Class[] paramTypes)
Set the method expression of this method call node. |
MethodCallBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
MethodCallBuilder |
parameters(List<Parameter> parameters)
Set the parameters of the method call node. |
public MethodCallBuilderImpl(FlowBuilderImpl root, String id)
public MethodCallBuilder defaultOutcome(String outcome)
MethodCallBuilder
If 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.
defaultOutcome
in class MethodCallBuilder
outcome
- A ValueExpression
String representing
the default outcome, only used if the method is a void
method or returns null
.public MethodCallBuilder defaultOutcome(javax.el.ValueExpression ve)
MethodCallBuilder
If 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.
defaultOutcome
in class MethodCallBuilder
ve
- A ValueExpression
representing
the default outcome, only used if the method is a void
method or returns null
.public MethodCallBuilder expression(String methodExpression)
MethodCallBuilder
Set the method expression of this method call node. The method
signature of the argument methodExpression
must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>)
method.
expression
in class MethodCallBuilder
methodExpression
- The MethodExpression
String to invoke.public MethodCallBuilder expression(String methodExpression, Class[] paramTypes)
MethodCallBuilder
Set the method expression of this method call node. The method
signature of the argument methodExpression
must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>)
method.
expression
in class MethodCallBuilder
methodExpression
- The MethodExpression
to invoke.paramTypes
- the types of the parameters to the method.public MethodCallBuilder parameters(List<Parameter> parameters)
MethodCallBuilder
Set the parameters of the method call node.
parameters
in class MethodCallBuilder
parameters
- the parameters to pass to the method when it is invoked.public MethodCallBuilder expression(javax.el.MethodExpression me)
MethodCallBuilder
Set the method expression of this method call node. The method
signature of the argument methodExpression
must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>)
method.
expression
in class MethodCallBuilder
me
- The MethodExpression
to invoke.public MethodCallBuilder markAsStartNode()
NodeBuilder
Mark 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.
markAsStartNode
in interface NodeBuilder
markAsStartNode
in class MethodCallBuilder
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.