javax.faces.flow

Class 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 Detail

      • Flow

        public 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. Any FlowScoped beans declared for this flow must remain in scope until after control returns from the method referenced by this MethodExpression.

        Since:
        2.2
      • getInitializer

        public abstract MethodExpression getInitializer()

        Return the MethodExpression that must be called by the runtime immediately after activating any FlowScoped beans declared for this 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 the targetFlow from this flow, or null if targetFlow 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

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/flow/flow.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.