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


java.lang.Object
   org.springframework.webflow.config.FlowExecutorFactoryBean

FlowExecutorFactoryBean
public class FlowExecutorFactoryBean implements FactoryBean,InitializingBean(Code)
The default flow executor factory implementation. As a FactoryBean, this class has been designed for use as a Spring managed bean.

This factory encapsulates the construction and assembly of a FlowExecutor , including the provision of its FlowExecutionRepository strategy.

The FlowExecutorFactoryBean.setDefinitionLocator(FlowDefinitionLocator) definition locator property is required, all other properties are optional.

This class has been designed with subclassing in mind. If you want to do advanced Spring Web Flow customization, e.g. using a custom org.springframework.webflow.executor.FlowExecutor implementation, consider subclassing this class and overriding one or more of the provided hook methods.
author:
   Keith Donald
author:
   Erwin Vervaet





Method Summary
public  voidafterPropertiesSet()
    
protected  ConversationManagercreateDefaultConversationManager()
     Create the conversation manager to be used in the default case, e.g.
protected  FlowExecutionRepositorycreateExecutionRepository(RepositoryType repositoryType, FlowExecutionStateRestorer executionStateRestorer, ConversationManager conversationManager)
     Factory method for creating the flow execution repository for saving and loading executing flows.
protected  FlowExecutionFactorycreateFlowExecutionFactory(AttributeMap executionAttributes, FlowExecutionListenerLoader executionListenerLoader)
     Create the flow execution factory to be used by the executor produced by this factory bean.
protected  FlowExecutionStateRestorercreateFlowExecutionStateRestorer(FlowDefinitionLocator definitionLocator, AttributeMap executionAttributes, FlowExecutionListenerLoader executionListenerLoader)
     Create the flow execution state restorer to be used by the executor produced by this factory bean.
protected  FlowExecutorcreateFlowExecutor(FlowDefinitionLocator definitionLocator, FlowExecutionFactory executionFactory, FlowExecutionRepository executionRepository)
     Create the flow executor instance created by this factory bean and configure it appropriately.
public  FlowExecutorgetFlowExecutor()
     Returns the flow executor constructed by the factory bean.
protected  AttributeMappergetInputMapper()
     Return the configured input mapper.
protected  IntegergetMaxContinuations()
     Returns the configured maximum number of continuation snapshots allowed for a single conversation when using the RepositoryType.CONTINUATION continuation flow execution repository.
protected  IntegergetMaxConversations()
     Returns the configured maximum number of allowed concurrent conversations in the session.
public  ObjectgetObject()
    
public  ClassgetObjectType()
    
public  booleanisSingleton()
    
public  voidsetConversationManager(ConversationManager conversationManager)
     Sets the strategy for managing conversations that should be configured for flow executors created by this factory.

The conversation manager is used by the flow execution repository subsystem to begin and end new conversations that store execution state.

By default, a SessionBindingConversationManager is used.

public  voidsetDefaults(FlowSystemDefaults defaults)
     Set system defaults that should be used.
public  voidsetDefinitionLocator(FlowDefinitionLocator definitionLocator)
     Sets the flow definition locator that will locate flow definitions needed for execution.
public  voidsetExecutionAttributes(Map executionAttributes)
     Sets the system attributes that apply to flow executions launched by the executor created by this factory.
public  voidsetExecutionListener(FlowExecutionListener executionListener)
     Convenience setter that sets a single listener that always applies to flow executions launched by the executor created by this factory.
public  voidsetExecutionListenerLoader(FlowExecutionListenerLoader executionListenerLoader)
     Sets the strategy for loading the listeners that will observe executions of a flow definition.
public  voidsetExecutionListeners(FlowExecutionListener[] executionListeners)
     Convenience setter that sets a list of listeners that always apply to flow executions launched by the executor created by this factory.
public  voidsetInputMapper(AttributeMapper inputMapper)
     Set the service responsible for mapping attributes of an ExternalContext to a new FlowExecution during the FlowExecutor.launch(StringExternalContext) launch flow operation.

This is optional.

public  voidsetMaxContinuations(int maxContinuations)
     Set the maximum number of continuation snapshots allowed for a single conversation when using the RepositoryType.CONTINUATION continuation flow execution repository.
public  voidsetMaxConversations(int maxConversations)
     Set the maximum number of allowed concurrent conversations in the session.
public  voidsetRepositoryType(RepositoryType repositoryType)
     Sets the type of flow execution repository that should be configured for the flow executors created by this factory.



Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws Exception(Code)



createDefaultConversationManager
protected ConversationManager createDefaultConversationManager()(Code)
Create the conversation manager to be used in the default case, e.g. when no explicit conversation manager has been configured using FlowExecutorFactoryBean.setConversationManager(ConversationManager) . This implementation return a SessionBindingConversationManager . the default conversation manager



createExecutionRepository
protected FlowExecutionRepository createExecutionRepository(RepositoryType repositoryType, FlowExecutionStateRestorer executionStateRestorer, ConversationManager conversationManager)(Code)
Factory method for creating the flow execution repository for saving and loading executing flows. Subclasses may override to customize the repository implementation used.
Parameters:
  repositoryType - a hint indicating what type of repository to create
Parameters:
  executionStateRestorer - the execution state restorer strategy to be used bythe repository
Parameters:
  conversationManager - the conversation manager specified by the user,could be null in which case the default conversation manager should be used a new flow execution repository instance



createFlowExecutionFactory
protected FlowExecutionFactory createFlowExecutionFactory(AttributeMap executionAttributes, FlowExecutionListenerLoader executionListenerLoader)(Code)
Create the flow execution factory to be used by the executor produced by this factory bean. Configure the execution factory appropriately. Subclasses may override if they which to use a custom execution factory, e.g. to use a custom FlowExecution implementation.
Parameters:
  executionAttributes - execution attributes to apply to created executions
Parameters:
  executionListenerLoader - decides which listeners to apply to created executions a new flow execution factory instance



createFlowExecutionStateRestorer
protected FlowExecutionStateRestorer createFlowExecutionStateRestorer(FlowDefinitionLocator definitionLocator, AttributeMap executionAttributes, FlowExecutionListenerLoader executionListenerLoader)(Code)
Create the flow execution state restorer to be used by the executor produced by this factory bean. Configure the state restorer appropriately. Subclasses may override if they which to use a custom state restorer implementation.
Parameters:
  definitionLocator - the definition locator to use
Parameters:
  executionAttributes - execution attributes to apply to restored executions
Parameters:
  executionListenerLoader - decides which listeners should apply to restoredflow executions a new state restorer instance



createFlowExecutor
protected FlowExecutor createFlowExecutor(FlowDefinitionLocator definitionLocator, FlowExecutionFactory executionFactory, FlowExecutionRepository executionRepository)(Code)
Create the flow executor instance created by this factory bean and configure it appropriately. Subclasses may override if they which to use a custom executor implementation.
Parameters:
  definitionLocator - the definition locator to use
Parameters:
  executionFactory - the execution factory to use
Parameters:
  executionRepository - the execution repository to use a new flow executor instance



getFlowExecutor
public FlowExecutor getFlowExecutor()(Code)
Returns the flow executor constructed by the factory bean.
since:
   1.0.2



getInputMapper
protected AttributeMapper getInputMapper()(Code)
Return the configured input mapper.



getMaxContinuations
protected Integer getMaxContinuations()(Code)
Returns the configured maximum number of continuation snapshots allowed for a single conversation when using the RepositoryType.CONTINUATION continuation flow execution repository. the configured value or null if the user did not explicitlyspecify a value and wants to use the default
since:
   1.0.1



getMaxConversations
protected Integer getMaxConversations()(Code)
Returns the configured maximum number of allowed concurrent conversations in the session. Will only be used when using the default conversation manager, e.g. when no explicit conversation manager has been configured using FlowExecutorFactoryBean.setConversationManager(ConversationManager) . the configured value or null if the user did not explicitly specify a value and wants to use the default
since:
   1.0.1



getObject
public Object getObject() throws Exception(Code)



getObjectType
public Class getObjectType()(Code)



isSingleton
public boolean isSingleton()(Code)



setConversationManager
public void setConversationManager(ConversationManager conversationManager)(Code)
Sets the strategy for managing conversations that should be configured for flow executors created by this factory.

The conversation manager is used by the flow execution repository subsystem to begin and end new conversations that store execution state.

By default, a SessionBindingConversationManager is used. Do not use FlowExecutorFactoryBean.setMaxConversations(int) when using this method.




setDefaults
public void setDefaults(FlowSystemDefaults defaults)(Code)
Set system defaults that should be used.
Parameters:
  defaults - the defaults to use.



setDefinitionLocator
public void setDefinitionLocator(FlowDefinitionLocator definitionLocator)(Code)
Sets the flow definition locator that will locate flow definitions needed for execution. Typically also a FlowDefinitionRegistry . Required.
Parameters:
  definitionLocator - the flow definition locator (registry)



setExecutionAttributes
public void setExecutionAttributes(Map executionAttributes)(Code)
Sets the system attributes that apply to flow executions launched by the executor created by this factory. Execution attributes may affect flow execution behavior.

Note: this method simply accepts a generic java.util.Map to allow for easy configuration by Spring. The map entries should consist of non-null String keys with object values.
Parameters:
  executionAttributes - the flow execution system attributes




setExecutionListener
public void setExecutionListener(FlowExecutionListener executionListener)(Code)
Convenience setter that sets a single listener that always applies to flow executions launched by the executor created by this factory.
Parameters:
  executionListener - the flow execution listener



setExecutionListenerLoader
public void setExecutionListenerLoader(FlowExecutionListenerLoader executionListenerLoader)(Code)
Sets the strategy for loading the listeners that will observe executions of a flow definition. Allows full control over what listeners should apply to executions of a flow definition launched by the executor created by this factory.



setExecutionListeners
public void setExecutionListeners(FlowExecutionListener[] executionListeners)(Code)
Convenience setter that sets a list of listeners that always apply to flow executions launched by the executor created by this factory.
Parameters:
  executionListeners - the flow execution listeners



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

This is optional. If not set, a default implementation will be used that simply exposes all request parameters as flow execution input attributes.




setMaxContinuations
public void setMaxContinuations(int maxContinuations)(Code)
Set the maximum number of continuation snapshots allowed for a single conversation when using the RepositoryType.CONTINUATION continuation flow execution repository.
See Also:   ContinuationFlowExecutionRepository.setMaxContinuations(int)
since:
   1.0.1



setMaxConversations
public void setMaxConversations(int maxConversations)(Code)
Set the maximum number of allowed concurrent conversations in the session. This is a convenience setter to allow easy configuration of the maxConversations property of the default SessionBindingConversationManager . Do not use this when using FlowExecutorFactoryBean.setConversationManager(ConversationManager) .
See Also:   SessionBindingConversationManager.setMaxConversations(int)
since:
   1.0.1



setRepositoryType
public void setRepositoryType(RepositoryType repositoryType)(Code)
Sets the type of flow execution repository that should be configured for the flow executors created by this factory. This factory encapsulates the construction of the repository implementation corresponding to the provided type.
Parameters:
  repositoryType - the flow execution repository type



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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