Java Doc for AnnotatedAction.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.AnnotatedAction

AnnotatedAction
public class AnnotatedAction extends AnnotatedObject implements Action(Code)
An action proxy/decorator that stores arbitrary properties about a target Action implementation for use within a specific Action execution context, for example an ActionState definition, a TransitionCriteria definition, or in a test environment.

An annotated action is an action that wraps another action (referred to as the target action), setting up the target action's execution attributes before invoking Action.execute .
author:
   Keith Donald
author:
   Erwin Vervaet



Field Summary
final public static  StringMETHOD_ATTRIBUTE
     The action execution method attribute ("method").
final public static  StringNAME_ATTRIBUTE
     The action name attribute ("name").

Constructor Summary
public  AnnotatedAction(Action targetAction)
     Creates a new annotated action object for the specified action.

Method Summary
public  Eventexecute(RequestContext context)
    
public  StringgetMethod()
     Returns the name of the action method to invoke when the target action is executed.
public  StringgetName()
     Returns the name of a named action, or null if the action is unnamed.
public  ActiongetTargetAction()
     Returns the wrapped target action.
public  booleanisNamed()
     Returns whether or not the wrapped target action is a named action.
protected  EventpostProcessResult(Event resultEvent)
     Get the event id to be used as grounds for a transition in the containing state, based on given result returned from action execution.

If the wrapped action is named, the name will be used as a qualifier for the event (e.g.

public  AnnotatedActionputAttribute(String attributeName, Object attributeValue)
     Set an attribute on this annotated object.
public  voidsetMethod(String method)
     Sets the name of the action method to invoke when the target action is executed.
public  voidsetName(String name)
     Sets the name of a named action.
public  voidsetTargetAction(Action targetAction)
     Set the target action wrapped by this decorator.
public  StringtoString()
    

Field Detail
METHOD_ATTRIBUTE
final public static String METHOD_ATTRIBUTE(Code)
The action execution method attribute ("method").

The method property is a hint about what method should be invoked; for example, the name of a specific target method on a org.springframework.webflow.action.MultiAction multi action .
See Also:   ActionState




NAME_ATTRIBUTE
final public static String NAME_ATTRIBUTE(Code)
The action name attribute ("name").

The name attribute is often used as a qualifier for an action's result event, and is typically used to allow the flow to respond to a specific action's outcome within a larger action execution chain.
See Also:   ActionState





Constructor Detail
AnnotatedAction
public AnnotatedAction(Action targetAction)(Code)
Creates a new annotated action object for the specified action. No contextual properties are provided.
Parameters:
  targetAction - the action




Method Detail
execute
public Event execute(RequestContext context) throws Exception(Code)



getMethod
public String getMethod()(Code)
Returns the name of the action method to invoke when the target action is executed.



getName
public String getName()(Code)
Returns the name of a named action, or null if the action is unnamed. Used when mapping action result events to transitions.
See Also:   AnnotatedAction.isNamed()
See Also:   AnnotatedAction.postProcessResult(Event)



getTargetAction
public Action getTargetAction()(Code)
Returns the wrapped target action. the action



isNamed
public boolean isNamed()(Code)
Returns whether or not the wrapped target action is a named action.
See Also:   AnnotatedAction.getName()
See Also:   AnnotatedAction.setName(String)



postProcessResult
protected Event postProcessResult(Event resultEvent)(Code)
Get the event id to be used as grounds for a transition in the containing state, based on given result returned from action execution.

If the wrapped action is named, the name will be used as a qualifier for the event (e.g. "myAction.success").
Parameters:
  resultEvent - the action result event




putAttribute
public AnnotatedAction putAttribute(String attributeName, Object attributeValue)(Code)
Set an attribute on this annotated object.
Parameters:
  attributeName - the name of the attribute to set
Parameters:
  attributeValue - the value of the attribute this object, to support call chaining
since:
   1.0.4



setMethod
public void setMethod(String method)(Code)
Sets the name of the action method to invoke when the target action is executed.
Parameters:
  method - the action method name



setName
public void setName(String name)(Code)
Sets the name of a named action. This is optional and can be null.
Parameters:
  name - the action name



setTargetAction
public void setTargetAction(Action targetAction)(Code)
Set the target action wrapped by this decorator.



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.