- java.lang.Object
-
- javax.faces.flow.Flow
-
public abstract class Flow extends Object
Flow is the runtime representation of a Faces Flow. Once placed into service by the runtime, an instance of this class is immutable. The implementation must be thread-safe because instances will be shared across all usages of the flow within the application.
- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor and Description Flow()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract String
getClientWindowFlowId(ClientWindow curWindow)
Obtain the current
ClientWindow
from theExternalContext
.abstract String
getDefiningDocumentId()
Return the immutable application unique identifier for the document in which the argument flow is defined.
abstract MethodExpression
getFinalizer()
Return the
MethodExpression
that must be called by the runtime as the last thing that happens before exiting this flow.abstract FlowCallNode
getFlowCall(Flow targetFlow)
Return the
FlowCallNode
that represents calling thetargetFlow
from this flow, ornull
iftargetFlow
cannot be reached from this flow.abstract Map<String,FlowCallNode>
getFlowCalls()
Return an immutable data structure containing all the flow call nodes declared for this flow.
abstract String
getId()
Return the immutable id for this Flow.
abstract Map<String,Parameter>
getInboundParameters()
Return an immutable data structure containing the inbound parameters that have been declared for this flow.
abstract MethodExpression
getInitializer()
Return the
MethodExpression
that must be called by the runtime immediately after activating anyFlowScoped
beans declared for this flow.abstract List<MethodCallNode>
getMethodCalls()
Return an immutable data structure containing all the method call nodes declared for this flow.
abstract Map<String,Set<NavigationCase>>
getNavigationCases()
abstract FlowNode
getNode(String nodeId)
abstract Map<String,ReturnNode>
getReturns()
Return an immutable data structure containing all of the return nodes declared for this flow.
abstract String
getStartNodeId()
Return the immutable id for the default node that should be activated when this flow is entered.
abstract Map<String,SwitchNode>
getSwitches()
Return an immutable data structure containing all of the switch nodes declared for this flow.
abstract List<ViewNode>
getViews()
Return an immutable data structure containing all of the view nodes declared for this flow.
-
-
-
Method Detail
-
getId
public abstract String getId()
Return the immutable id for this Flow. This must be unique within the defining document (such as an Application Configuration Resources file), but need not be unique within the entire application.
- Since:
- 2.2
-
getDefiningDocumentId
public abstract String getDefiningDocumentId()
Return the immutable application unique identifier for the document in which the argument flow is defined.
- Since:
- 2.2
-
getStartNodeId
public abstract String getStartNodeId()
Return the immutable id for the default node that should be activated when this flow is entered.
- Since:
- 2.2
-
getFinalizer
public abstract MethodExpression getFinalizer()
Return the
MethodExpression
that must be called by the runtime as the last thing that happens before exiting this flow. AnyFlowScoped
beans declared for this flow must remain in scope until after control returns from the method referenced by thisMethodExpression
.- Since:
- 2.2
-
getInitializer
public abstract MethodExpression getInitializer()
Return the
MethodExpression
that must be called by the runtime immediately after activating anyFlowScoped
beans declared for this flow.- Since:
- 2.2
-
getInboundParameters
public abstract Map<String,Parameter> getInboundParameters()
Return an immutable data structure containing the inbound parameters that have been declared for this flow. See
FlowHandler.transition(javax.faces.context.FacesContext, javax.faces.flow.Flow, javax.faces.flow.Flow, javax.faces.flow.FlowCallNode, java.lang.String)
for the specification of how these parameters are used. Inbound parameters are associated with a specific flow instance, while outbound parameters are associated with aFlowCallNode
that causes the transition to a new flow.- Since:
- 2.2
-
getViews
public abstract List<ViewNode> getViews()
Return an immutable data structure containing all of the view nodes declared for this flow.
- Since:
- 2.2
-
getReturns
public abstract Map<String,ReturnNode> getReturns()
Return an immutable data structure containing all of the return nodes declared for this flow.
- Since:
- 2.2
-
getSwitches
public abstract Map<String,SwitchNode> getSwitches()
Return an immutable data structure containing all of the switch nodes declared for this flow.
- Since:
- 2.2
-
getFlowCalls
public abstract Map<String,FlowCallNode> getFlowCalls()
Return an immutable data structure containing all the flow call nodes declared for this flow.
- Since:
- 2.2
-
getFlowCall
public abstract FlowCallNode getFlowCall(Flow targetFlow)
Return the
FlowCallNode
that represents calling thetargetFlow
from this flow, ornull
iftargetFlow
cannot be reached from this flow.- Since:
- 2.2
-
getMethodCalls
public abstract List<MethodCallNode> getMethodCalls()
Return an immutable data structure containing all the method call nodes declared for this flow.
- Since:
- 2.2
-
getNavigationCases
public abstract Map<String,Set<NavigationCase>> getNavigationCases()
-
getClientWindowFlowId
public abstract String getClientWindowFlowId(ClientWindow curWindow)
Obtain the current
ClientWindow
from theExternalContext
. Get the window's id and append "_" and the return fromgetId()
. Return the result.- Since:
- 2.2
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/faces/flow/flow.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.