Java Doc for Invoker.java in  » Library » Apache-commons-scxml-0.6-src » org » apache » commons » scxml » invoke » 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 » Library » Apache commons scxml 0.6 src » org.apache.commons.scxml.invoke 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.scxml.invoke.Invoker

All known Subclasses:   org.apache.commons.scxml.invoke.SimpleSCXMLInvoker,
Invoker
public interface Invoker (Code)

The Invoker interface is used to define the possible interactions between the parent state machine (executor) and the types of invocable activities.

Invocable activities must first register an Invoker implementation class for the appropriate "targettype" (attribute of <invoke>) with the parent SCXMLExecutor.

The communication link between the parent state machine executor and the invoked activity is a bi-directional events pipe.

All events triggered on the parent state machine get forwarded to the invoked activity. The processing semantics for these events depend upon the "targettype", and thereby vary per concrete implementation of this interface.

The invoked activity in turn must fire a special "done" event when it concludes. It may fire additional events before the "done" event. The semantics of any additional events depend upon the "targettype". The invoked activity must not fire any events after the "done" event. The name of the special "done" event must be the ID of the parent state wherein the corresponding <invoke> resides, with the String ".invoke.done" appended.

The Invoker "lifecycle" is outlined below:

  1. Instantiation via Class.newInstance (Invoker implementation requires accessible constructor).
  2. Configuration (setters for parent state ID and SCInstance ).
  3. Initiation of invoked activity via invoke() method, passing the source URI and the map of params.
  4. Zero or more bi-directional event triggering.
  5. Either completion or cancellation.





Method Summary
 voidcancel()
     Cancel this invocation.
 voidinvoke(String source, Map params)
     Begin this invocation.
 voidparentEvents(TriggerEvent[] evts)
     Forwards the events triggered on the parent state machine on to the invoked activity.
 voidsetParentStateId(String parentStateId)
     Set the state ID of the owning state for the <invoke>.
 voidsetSCInstance(SCInstance scInstance)
     Set the "context" of the parent state machine, which provides the channel.



Method Detail
cancel
void cancel() throws InvokerException(Code)
Cancel this invocation.
throws:
  InvokerException - In case there is a fatal problem withcanceling this invoke.



invoke
void invoke(String source, Map params) throws InvokerException(Code)
Begin this invocation.
Parameters:
  source - The source URI of the activity being invoked.
Parameters:
  params - The <param> values
throws:
  InvokerException - In case there is a fatal problem withinvoking the source.



parentEvents
void parentEvents(TriggerEvent[] evts) throws InvokerException(Code)
Forwards the events triggered on the parent state machine on to the invoked activity.
Parameters:
  evts - an array of external events which triggered during the lasttime quantum
throws:
  InvokerException - In case there is a fatal problem withprocessing the events forwarded by theparent state machine.



setParentStateId
void setParentStateId(String parentStateId)(Code)
Set the state ID of the owning state for the <invoke>. Implementations must use this ID for constructing the event name for the special "done" event (and optionally, for other event names as well).
Parameters:
  parentStateId - The ID of the parent state.



setSCInstance
void setSCInstance(SCInstance scInstance)(Code)
Set the "context" of the parent state machine, which provides the channel.
Parameters:
  scInstance - The "context" of the parent state machine.



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