Java Doc for StatePreservationManager.java in  » Web-Framework » RSF » uk » org » ponder » rsf » preservation » 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 » Web Framework » RSF » uk.org.ponder.rsf.preservation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   uk.org.ponder.rsf.preservation.StatePreservationManager

StatePreservationManager
public class StatePreservationManager (Code)
The central manager of all PreservationStrategies. This is a request-scope bean which is called directly by the ActionHandler in order to be notified of life-cycle events that require preservation, restoration and destruction of the bean state stored by the Strategies.

This SPM implementation is specifically aware of "flow" scope state as a first-class concept. It maintains three separate pools of strategies, guided by their relationship to the flow lifecycle. Plain "strategies" are used for storage during the main lifetime of a flow. "startStrategies" are invoked not only during a flow, but at the initial launching of a flow as well, to persist any required launch state (in current RSF, this is a single bean, the FlowIDHolder). Finally, at the expiration of a flow, the "endStrategies" operate to save any (presumably reduced) state required to correctly render an "end of flow", "confirmation" style page, stored into "bandgap" state with probably short lifetime.
author:
   Antranig Basman (amb26@ponder.org.uk)





Method Summary
public  voidflowEnd(String tokenid)
     Signal that the current flow (multi-request sequence) has ended.
public  StringListgetScopeLocks()
    
public  voidinit()
    
public  voidpreserve(String tokenid, boolean flowstart)
    
public  voidrestore(String tokenid, boolean flowend)
     Request all registered strategies to restore state into the current request-scope container.
public  voidscopePreserve()
    
public  voidscopeRestore()
    
public  voidsetDeadBeanLocator(BeanLocator deadbl)
    
public  voidsetEndFlowStrategies(List endflowstrategies)
    
public  voidsetScopeStrategies(List scopestrategies)
    
public  voidsetStartFlowStrategies(List startflowstrategies)
    
public  voidsetStrategies(List strategies)
    
public  voidsetWriteableBeanLocator(WriteableBeanLocator wbl)
    



Method Detail
flowEnd
public void flowEnd(String tokenid)(Code)
Signal that the current flow (multi-request sequence) has ended. Remove all state from flow preservation strategies, and transfer to flow-end strategies (if any).



getScopeLocks
public StringList getScopeLocks()(Code)



init
public void init()(Code)



preserve
public void preserve(String tokenid, boolean flowstart)(Code)



restore
public void restore(String tokenid, boolean flowend)(Code)
Request all registered strategies to restore state into the current request-scope container.
Parameters:
  tokenid - The flow token keying the state to be restored.
Parameters:
  flowend - true if the specified flow has expired.



scopePreserve
public void scopePreserve()(Code)



scopeRestore
public void scopeRestore()(Code)



setDeadBeanLocator
public void setDeadBeanLocator(BeanLocator deadbl)(Code)



setEndFlowStrategies
public void setEndFlowStrategies(List endflowstrategies)(Code)



setScopeStrategies
public void setScopeStrategies(List scopestrategies)(Code)



setStartFlowStrategies
public void setStartFlowStrategies(List startflowstrategies)(Code)



setStrategies
public void setStrategies(List strategies)(Code)



setWriteableBeanLocator
public void setWriteableBeanLocator(WriteableBeanLocator wbl)(Code)



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.