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


java.lang.Object
   org.springframework.webflow.engine.builder.BaseFlowBuilder
      org.springframework.webflow.engine.builder.xml.XmlFlowBuilder

XmlFlowBuilder
public class XmlFlowBuilder extends BaseFlowBuilder implements ResourceHolder(Code)
Flow builder that builds flows as defined in an XML document. The XML document should adhere to the following format:
 <?xml version="1.0" encoding="UTF-8"?>
 <flow xmlns="http://www.springframework.org/schema/webflow"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.springframework.org/schema/webflow
 http://www.springframework.org/schema/webflow/spring-webflow-1.0.xsd">
 <!-- Define your states here -->
 </flow>
 

Consult the web flow XML schema for more information on the XML-based flow definition format.

This builder will setup a flow-local bean factory for the flow being constructed. That flow-local bean factory will be populated with XML bean definitions contained in files referenced using the "import" element. The flow-local bean factory will use the bean factory defing this flow builder as a parent. As such, the flow can access artifacts in either its flow-local bean factory or in the parent bean factory hierarchy, e.g. the bean factory of the dispatcher.
author:
   Erwin Vervaet
author:
   Keith Donald



Field Summary
protected  Resourcelocation
     The resource from which the document element being parsed was read.

Constructor Summary
public  XmlFlowBuilder(Resource location)
     Create a new XML flow builder parsing the document at the specified location.
public  XmlFlowBuilder(Resource location, FlowServiceLocator flowServiceLocator)
     Create a new XML flow builder parsing the document at the specified location, using the provided service locator to access externally managed flow artifacts.

Method Summary
public  voidbuildEndActions()
    
public  voidbuildExceptionHandlers()
    
public  voidbuildGlobalTransitions()
    
public  voidbuildInlineFlows()
    
public  voidbuildInputMapper()
    
public  voidbuildOutputMapper()
    
public  voidbuildStartActions()
    
public  voidbuildStates()
    
public  voidbuildVariables()
    
protected  BeanFactorycreateLocalBeanFactory(Flow flow, Resource[] resources)
     Create a bean factory serving as a local flow service registry.
public  voiddispose()
    
protected  ElementgetChildElementByTagName(Element ele, String childEleName)
     Utility method that returns the first child element identified by its name.
protected  DocumentgetDocument()
     Returns the DOM document parsed from the XML file.
protected  ElementgetDocumentElement()
     Returns the root document element.
protected  FlowArtifactFactorygetFlowArtifactFactory()
     Returns the artifact factory of the flow service locator local to this builder.
protected  FlowServiceLocatorgetLocalFlowServiceLocator()
     Returns the flow service locator local to this builder.
public  ResourcegetLocation()
     Returns the resource from which the document element was loaded.
public  ResourcegetResource()
    
public  voidinit(String id, AttributeMap attributes)
    
protected  booleannodeNameEquals(Node node, String desiredName)
     Namespace-aware equals comparison.
protected  voidregisterLocalBeans(Flow flow, ConfigurableBeanFactory beanFactory)
     Register beans in the bean factory local to the flow definition being built.
public  voidsetDocumentLoader(DocumentLoader documentLoader)
     Sets the loader that will load the XML-based flow definition document.
public  voidsetLocation(Resource location)
     Sets the resource from which the document element was loaded.
public  StringtoString()
    

Field Detail
location
protected Resource location(Code)
The resource from which the document element being parsed was read. Used as a location for relative resource lookup.




Constructor Detail
XmlFlowBuilder
public XmlFlowBuilder(Resource location)(Code)
Create a new XML flow builder parsing the document at the specified location.
Parameters:
  location - the location of the XML-based flow definition resource



XmlFlowBuilder
public XmlFlowBuilder(Resource location, FlowServiceLocator flowServiceLocator)(Code)
Create a new XML flow builder parsing the document at the specified location, using the provided service locator to access externally managed flow artifacts.
Parameters:
  location - the location of the XML-based flow definition resource
Parameters:
  flowServiceLocator - the locator for services needed by this builder to build its Flow




Method Detail
buildEndActions
public void buildEndActions() throws FlowBuilderException(Code)



buildExceptionHandlers
public void buildExceptionHandlers() throws FlowBuilderException(Code)



buildGlobalTransitions
public void buildGlobalTransitions() throws FlowBuilderException(Code)



buildInlineFlows
public void buildInlineFlows() throws FlowBuilderException(Code)



buildInputMapper
public void buildInputMapper() throws FlowBuilderException(Code)



buildOutputMapper
public void buildOutputMapper() throws FlowBuilderException(Code)



buildStartActions
public void buildStartActions() throws FlowBuilderException(Code)



buildStates
public void buildStates() throws FlowBuilderException(Code)



buildVariables
public void buildVariables() throws FlowBuilderException(Code)



createLocalBeanFactory
protected BeanFactory createLocalBeanFactory(Flow flow, Resource[] resources)(Code)
Create a bean factory serving as a local flow service registry.
Parameters:
  flow - the current flow definition being built
Parameters:
  resources - the file resources to assemble the bean factory from; typically XML-based the bean factory
since:
   1.0.4



dispose
public void dispose()(Code)



getChildElementByTagName
protected Element getChildElementByTagName(Element ele, String childEleName)(Code)
Utility method that returns the first child element identified by its name.
Parameters:
  ele - the DOM element to analyze
Parameters:
  childEleName - the child element name to look for the org.w3c.dom.Element instance, or null if none found



getDocument
protected Document getDocument()(Code)
Returns the DOM document parsed from the XML file.



getDocumentElement
protected Element getDocumentElement()(Code)
Returns the root document element.



getFlowArtifactFactory
protected FlowArtifactFactory getFlowArtifactFactory()(Code)
Returns the artifact factory of the flow service locator local to this builder.



getLocalFlowServiceLocator
protected FlowServiceLocator getLocalFlowServiceLocator()(Code)
Returns the flow service locator local to this builder.



getLocation
public Resource getLocation()(Code)
Returns the resource from which the document element was loaded. This is used for location relative loading of other resources.



getResource
public Resource getResource()(Code)



init
public void init(String id, AttributeMap attributes) throws FlowBuilderException(Code)



nodeNameEquals
protected boolean nodeNameEquals(Node node, String desiredName)(Code)
Namespace-aware equals comparison. Returns true if either Node.getLocalName or Node.getNodeName equals desiredName, otherwise returns false.



registerLocalBeans
protected void registerLocalBeans(Flow flow, ConfigurableBeanFactory beanFactory)(Code)
Register beans in the bean factory local to the flow definition being built.

Subclasses may override this metod to customize the population of the bean factory local to the flow definition being built; for example, to register mock implementations of services in a test environment.
Parameters:
  flow - the current flow definition being built
Parameters:
  beanFactory - the bean factory; register local beans with it usingConfigurableBeanFactory.registerSingleton(StringObject)
since:
   1.0.4




setDocumentLoader
public void setDocumentLoader(DocumentLoader documentLoader)(Code)
Sets the loader that will load the XML-based flow definition document. Optional, defaults to DefaultDocumentLoader .
Parameters:
  documentLoader - the document loader



setLocation
public void setLocation(Resource location)(Code)
Sets the resource from which the document element was loaded. This is used for location relative loading of other resources.



toString
public String toString()(Code)



Methods inherited from org.springframework.webflow.engine.builder.BaseFlowBuilder
public void buildEndActions() throws FlowBuilderException(Code)(Java Doc)
public void buildExceptionHandlers() throws FlowBuilderException(Code)(Java Doc)
public void buildGlobalTransitions() throws FlowBuilderException(Code)(Java Doc)
public void buildInlineFlows() throws FlowBuilderException(Code)(Java Doc)
public void buildInputMapper() throws FlowBuilderException(Code)(Java Doc)
public void buildOutputMapper() throws FlowBuilderException(Code)(Java Doc)
public void buildStartActions() throws FlowBuilderException(Code)(Java Doc)
abstract public void buildStates() throws FlowBuilderException(Code)(Java Doc)
public void buildVariables() throws FlowBuilderException(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected ConversionExecutor fromStringTo(String targetAlias)(Code)(Java Doc)
protected ConversionExecutor fromStringTo(Class targetType) throws ConversionException(Code)(Java Doc)
public Flow getFlow()(Code)(Java Doc)
public FlowServiceLocator getFlowServiceLocator()(Code)(Java Doc)
abstract public void init(String flowId, AttributeMap attributes) throws FlowBuilderException(Code)(Java Doc)
protected void setFlow(Flow flow)(Code)(Java Doc)
public void setFlowServiceLocator(FlowServiceLocator flowServiceLocator)(Code)(Java Doc)

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.