Java Doc for FlowBuilder.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » engine » builder » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » spring webflow 1.0.4 » org.springframework.webflow.engine.builder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.webflow.engine.builder.FlowBuilder

All known Subclasses:   org.springframework.webflow.engine.builder.BaseFlowBuilder,
FlowBuilder
public interface FlowBuilder (Code)
Builder interface used to build a flow definition. The process of building a flow consists of the following steps:
  1. Initialize this builder, creating the initial flow definition, by calling FlowBuilder.init(String,AttributeMap) .
  2. Call FlowBuilder.buildVariables() to create any variables of the flow and add them to the flow definition.
  3. Call FlowBuilder.buildInputMapper() to create and set the input mapper for the flow.
  4. Call FlowBuilder.buildStartActions() to create and add any start actions to the flow.
  5. Call FlowBuilder.buildInlineFlows() to create any inline flows encapsulated by the flow and add them to the flow definition.
  6. Call FlowBuilder.buildStates() to create the states of the flow and add them to the flow definition.
  7. Call FlowBuilder.buildGlobalTransitions() to create the any transitions shared by all states of the flow and add them to the flow definition.
  8. Call FlowBuilder.buildEndActions() to create and add any end actions to the flow.
  9. Call FlowBuilder.buildOutputMapper() to create and set the output mapper for the flow.
  10. Call FlowBuilder.buildExceptionHandlers() to create the exception handlers of the flow and add them to the flow definition.
  11. Call FlowBuilder.getFlow() to return the fully-built Flow definition.
  12. Dispose this builder, releasing any resources allocated during the building process by calling FlowBuilder.dispose() .

Implementations should encapsulate flow construction logic, either for a specific kind of flow, for example, an OrderFlowBuilder built in Java code, or a generic flow builder strategy, like the XmlFlowBuilder, for building flows from an XML-definition.

Flow builders are used by the org.springframework.webflow.engine.builder.FlowAssembler , which acts as an assembler (director). Flow Builders may be reused, however, exercise caution when doing this as these objects are not thread safe. Also, for each use be sure to call init, followed by the build* methods, getFlow, and dispose completely in that order.

This is an example of the classic GoF builder pattern.
See Also:   Flow
See Also:   org.springframework.webflow.engine.builder.FlowAssembler
See Also:   org.springframework.webflow.engine.builder.AbstractFlowBuilder
See Also:   org.springframework.webflow.engine.builder.xml.XmlFlowBuilder
author:
   Keith Donald
author:
   Erwin Vervaet





Method Summary
public  voidbuildEndActions()
     Builds any end actions to execute when the flow ends.
public  voidbuildExceptionHandlers()
     Creates and adds all exception handlers to the flow built by this builder.
public  voidbuildGlobalTransitions()
     Builds any transitions shared by all states of the flow.
public  voidbuildInlineFlows()
     Builds any "in-line" flows encapsulated by the flow.
public  voidbuildInputMapper()
     Builds the input mapper responsible for mapping flow input on start.
public  voidbuildOutputMapper()
     Builds the output mapper responsible for mapping flow output on end.
public  voidbuildStartActions()
     Builds any start actions to execute when the flow starts.
public  voidbuildStates()
     Builds the states of the flow.
public  voidbuildVariables()
     Builds any variables initialized by the flow when it starts.
public  voiddispose()
     Shutdown the builder, releasing any resources it holds.
public  FlowgetFlow()
     Get the fully constructed and configured Flow object - called by the builder's assembler (director) after assembly.
public  voidinit(String flowId, AttributeMap attributes)
     Initialize this builder.



Method Detail
buildEndActions
public void buildEndActions() throws FlowBuilderException(Code)
Builds any end actions to execute when the flow ends.
throws:
  FlowBuilderException - an exception occured building the flow



buildExceptionHandlers
public void buildExceptionHandlers() throws FlowBuilderException(Code)
Creates and adds all exception handlers to the flow built by this builder.
throws:
  FlowBuilderException - an exception occured building this flow



buildGlobalTransitions
public void buildGlobalTransitions() throws FlowBuilderException(Code)
Builds any transitions shared by all states of the flow.
throws:
  FlowBuilderException - an exception occured building the flow



buildInlineFlows
public void buildInlineFlows() throws FlowBuilderException(Code)
Builds any "in-line" flows encapsulated by the flow.
throws:
  FlowBuilderException - an exception occured building the flow



buildInputMapper
public void buildInputMapper() throws FlowBuilderException(Code)
Builds the input mapper responsible for mapping flow input on start.
throws:
  FlowBuilderException - an exception occured building the flow



buildOutputMapper
public void buildOutputMapper() throws FlowBuilderException(Code)
Builds the output mapper responsible for mapping flow output on end.
throws:
  FlowBuilderException - an exception occured building the flow



buildStartActions
public void buildStartActions() throws FlowBuilderException(Code)
Builds any start actions to execute when the flow starts.
throws:
  FlowBuilderException - an exception occured building the flow



buildStates
public void buildStates() throws FlowBuilderException(Code)
Builds the states of the flow.
throws:
  FlowBuilderException - an exception occured building the flow



buildVariables
public void buildVariables() throws FlowBuilderException(Code)
Builds any variables initialized by the flow when it starts.
throws:
  FlowBuilderException - an exception occured building the flow



dispose
public void dispose()(Code)
Shutdown the builder, releasing any resources it holds. A new flow construction process should start with another call to the FlowBuilder.init(String,AttributeMap) method.



getFlow
public Flow getFlow()(Code)
Get the fully constructed and configured Flow object - called by the builder's assembler (director) after assembly. When this method is called by the assembler, it is expected flow construction has completed and the returned flow is ready for use.



init
public void init(String flowId, AttributeMap attributes) throws FlowBuilderException(Code)
Initialize this builder. This could cause the builder to open a stream to an externalized resource representing the flow definition, for example.
Parameters:
  flowId - the identifier to assign to the flow
Parameters:
  attributes - custom attributes to assign to the flow
throws:
  FlowBuilderException - an exception occured building the flow



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.