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


java.lang.Object
   org.springframework.webflow.engine.AnnotatedObject
      org.springframework.webflow.engine.State

All known Subclasses:   org.springframework.webflow.engine.EndState,  org.springframework.webflow.engine.TransitionableState,
State
abstract public class State extends AnnotatedObject implements StateDefinition(Code)
A point in a flow where something happens. What happens is determined by a state's type. Standard types of states include action states, view states, subflow states, and end states.

Each state is associated with exactly one owning flow definition. Specializations of this class capture all the configuration information needed for a specific kind of state.

Subclasses should implement the doEnter method to execute the processing that should occur when this state is entered, acting on its configuration information. The ability to plugin custom state types that execute different behaviour polymorphically is the classic GoF state pattern.

Equality: Two states are equal if they have the same id and are part of the same flow.
See Also:   org.springframework.webflow.engine.TransitionableState
See Also:   org.springframework.webflow.engine.ActionState
See Also:   org.springframework.webflow.engine.ViewState
See Also:   org.springframework.webflow.engine.SubflowState
See Also:   org.springframework.webflow.engine.EndState
See Also:   org.springframework.webflow.engine.DecisionState
author:
   Keith Donald
author:
   Erwin Vervaet



Field Summary
final protected  Loglogger
     Logger, for use in subclasses.

Constructor Summary
protected  State(Flow flow, String id)
     Creates a state for the provided flow identified by the provided id.

Method Summary
protected  voidappendToString(ToStringCreator creator)
     Subclasses may override this hook method to stringify their internal state.
abstract protected  ViewSelectiondoEnter(RequestControlContext context)
     Hook method to execute custom behaviour as a result of entering this state.
final public  ViewSelectionenter(RequestControlContext context)
     Enter this state in the provided flow control context.
public  booleanequals(Object o)
    
public  ActionListgetEntryActionList()
     Returns the list of actions executed by this state when it is entered.
public  FlowExecutionExceptionHandlerSetgetExceptionHandlerSet()
     Returns a mutable set of exception handlers, allowing manipulation of how exceptions are handled when thrown within this state.
public  FlowgetFlow()
     Returns the owning flow.
public  StringgetId()
    
public  FlowDefinitiongetOwner()
    
public  ViewSelectionhandleException(FlowExecutionException exception, RequestControlContext context)
     Handle an exception that occured in this state during the context of the current flow execution request.
public  inthashCode()
    
public  booleanisStartState()
     Returns a flag indicating if this state is the start state of its owning flow.
public  StringtoString()
    

Field Detail
logger
final protected Log logger(Code)
Logger, for use in subclasses.




Constructor Detail
State
protected State(Flow flow, String id) throws IllegalArgumentException(Code)
Creates a state for the provided flow identified by the provided id. The id must be locally unique to the owning flow. The state will be automatically added to the flow.
Parameters:
  flow - the owning flow
Parameters:
  id - the state identifier (must be unique to the flow)
throws:
  IllegalArgumentException - if this state cannot be added to theflow, for instance when the provided id is not unique in the owning flow
See Also:   State.getEntryActionList()
See Also:   State.getExceptionHandlerSet()




Method Detail
appendToString
protected void appendToString(ToStringCreator creator)(Code)
Subclasses may override this hook method to stringify their internal state. This default implementation does nothing.
Parameters:
  creator - the toString creator, to stringify properties



doEnter
abstract protected ViewSelection doEnter(RequestControlContext context) throws FlowExecutionException(Code)
Hook method to execute custom behaviour as a result of entering this state. By implementing this method subclasses specialize the behaviour of the state.
Parameters:
  context - the control context for the currently executing flow, usedby this state to manipulate the flow execution a view selection containing model and view information needed torender the results of the state processing
throws:
  FlowExecutionException - if an exception occurs in this state



enter
final public ViewSelection enter(RequestControlContext context) throws FlowExecutionException(Code)
Enter this state in the provided flow control context. This implementation just calls the State.doEnter(RequestControlContext) hook method, which should be implemented by subclasses, after executing the entry actions.
Parameters:
  context - the control context for the currently executing flow, usedby this state to manipulate the flow execution a view selection containing model and view information needed torender the results of the state processing
throws:
  FlowExecutionException - if an exception occurs in this state



equals
public boolean equals(Object o)(Code)



getEntryActionList
public ActionList getEntryActionList()(Code)
Returns the list of actions executed by this state when it is entered. The returned list is mutable. the state entry action list



getExceptionHandlerSet
public FlowExecutionExceptionHandlerSet getExceptionHandlerSet()(Code)
Returns a mutable set of exception handlers, allowing manipulation of how exceptions are handled when thrown within this state.

Exception handlers are invoked when an exception occurs when this state is entered, and can execute custom exception handling logic as well as select an error view to display. the state exception handler set




getFlow
public Flow getFlow()(Code)
Returns the owning flow.



getId
public String getId()(Code)



getOwner
public FlowDefinition getOwner()(Code)



handleException
public ViewSelection handleException(FlowExecutionException exception, RequestControlContext context)(Code)
Handle an exception that occured in this state during the context of the current flow execution request.
Parameters:
  exception - the exception that occured
Parameters:
  context - the flow execution control context the selected error view, or null if no handlermatched or returned a non-null view selection



hashCode
public int hashCode()(Code)



isStartState
public boolean isStartState()(Code)
Returns a flag indicating if this state is the start state of its owning flow. true if the flow is the start state, false otherwise



toString
public String toString()(Code)



Fields inherited from org.springframework.webflow.engine.AnnotatedObject
final public static String CAPTION_PROPERTY(Code)(Java Doc)
final public static String DESCRIPTION_PROPERTY(Code)(Java Doc)

Methods inherited from org.springframework.webflow.engine.AnnotatedObject
public MutableAttributeMap getAttributeMap()(Code)(Java Doc)
public AttributeMap getAttributes()(Code)(Java Doc)
public String getCaption()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public void setCaption(String caption)(Code)(Java Doc)
public void setDescription(String description)(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.