Java Doc for FlowNavigationHandler.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » executor » jsf » 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.executor.jsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.webflow.executor.jsf.FlowNavigationHandler

FlowNavigationHandler
public class FlowNavigationHandler extends DecoratingNavigationHandler (Code)
An implementation of a JSF NavigationHandler that provides integration with Spring Web Flow. Responsible for delegating to Spring Web Flow to launch and resume flow executions, treating JSF action outcomes (like a command button click) as web flow events. This class delegates to the standard NavigationHandler implementation when a navigation request does not pertain to a flow execution.

The following navigation handler algorithm is implemented by default:

If a flow execution has been restored in the current request:

  • Resume the flow execution by signaling the JSF action outcome as an event against the current state.
  • Once event processing completes expose the selected view as the "current" ViewSelection .

If a flow execution has not been restored in the current request:

  • If the specified logical outcome is of the form flowId:xxx look up the corresponding FlowDefinition with that id and launch a new flow execution in the starting state. Expose the new execution as the "current" flow execution for this request. Expose the first selected view as the "current" view selection.
  • If the specified logical outcome is not of the form flowId:xxx, simply delegate to the standard NavigationHandler implementation and return.

How the flowId and eventId arguments are extracted can be customized by setting a custom FlowNavigationHandler.setArgumentExtractor(FlowExecutorArgumentExtractor) argument extractor . Note about customization: since NavigationHandlers managed directly by the JSF provider cannot be benefit from DependencyInjection, See Spring's org.springframework.web.jsf.DelegatingNavigationHandlerProxy when you need to customize a FlowNavigationHandler instance.
author:
   Craig McClanahan
author:
   Colin Sampaleanu
author:
   Keith Donald


Field Summary
final protected  Loglogger
     Logger, usable by subclasses.

Constructor Summary
public  FlowNavigationHandler()
     Create a new FlowNavigationHandler using the default constructor.
public  FlowNavigationHandler(NavigationHandler originalNavigationHandler)
     Create a new FlowNavigationHandler , wrapping the specified standard navigation handler implementation.

Method Summary
protected  MutableAttributeMapcreateInput(ExternalContext context)
     Factory method that creates the input attribute map for a newly created FlowExecution .
public  FlowExecutorArgumentExtractorgetArgumentExtractor()
     Returns the argument extractor used by this navigation handler.
public  AttributeMappergetInputMapper()
     Returns the configured flow execution input mapper.
public  voidhandleNavigation(FacesContext facesContext, String fromAction, String outcome, NavigationHandler originalNavigationHandler)
    
public  voidsetArgumentExtractor(FlowExecutorArgumentExtractor argumentExtractor)
     Sets the argument extractor to use by this navigation handler.
public  voidsetInputMapper(AttributeMapper inputMapper)
     Sets the service responsible for mapping attributes of an ExternalContext to a new FlowExecution during a launch flow operation.

The default implementation simply exposes all request parameters as flow execution input attributes.


Field Detail
logger
final protected Log logger(Code)
Logger, usable by subclasses.




Constructor Detail
FlowNavigationHandler
public FlowNavigationHandler()(Code)
Create a new FlowNavigationHandler using the default constructor.



FlowNavigationHandler
public FlowNavigationHandler(NavigationHandler originalNavigationHandler)(Code)
Create a new FlowNavigationHandler , wrapping the specified standard navigation handler implementation.
Parameters:
  originalNavigationHandler - Standard NavigationHandler we are wrapping




Method Detail
createInput
protected MutableAttributeMap createInput(ExternalContext context)(Code)
Factory method that creates the input attribute map for a newly created FlowExecution . This implementation uses the registered input mapper, if any.
Parameters:
  context - the external context the input map, or null if no input



getArgumentExtractor
public FlowExecutorArgumentExtractor getArgumentExtractor()(Code)
Returns the argument extractor used by this navigation handler.



getInputMapper
public AttributeMapper getInputMapper()(Code)
Returns the configured flow execution input mapper.



handleNavigation
public void handleNavigation(FacesContext facesContext, String fromAction, String outcome, NavigationHandler originalNavigationHandler)(Code)



setArgumentExtractor
public void setArgumentExtractor(FlowExecutorArgumentExtractor argumentExtractor)(Code)
Sets the argument extractor to use by this navigation handler. Call to customize how flow id and event id arguments are extracted.



setInputMapper
public void setInputMapper(AttributeMapper inputMapper)(Code)
Sets the service responsible for mapping attributes of an ExternalContext to a new FlowExecution during a launch flow operation.

The default implementation simply exposes all request parameters as flow execution input attributes. May be null.
See Also:   RequestParameterInputMapper




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