Java Doc for FlowControllerFactory.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » pageflow » 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 beehive 1.0.2 src » org.apache.beehive.netui.pageflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.netui.core.factory.Factory
      org.apache.beehive.netui.pageflow.FlowControllerFactory

FlowControllerFactory
public class FlowControllerFactory extends Factory (Code)

Factory for creating FlowController s - user PageFlowController s and SharedFlowController s.




Constructor Summary
protected  FlowControllerFactory()
    

Method Summary
public  PageFlowControllercreatePageFlow(RequestContext context, String pageFlowClassName)
     Create a PageFlowController of the given type.
public  PageFlowControllercreatePageFlow(RequestContext context, Class pageFlowClass)
     Create a PageFlowController of the given type.
public  SharedFlowControllercreateSharedFlow(RequestContext context, String sharedFlowClassName)
     Create a SharedFlowController of the given type.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  sharedFlowClassName - the type name of the desired SharedFlowController.
public  SharedFlowControllercreateSharedFlow(RequestContext context, Class sharedFlowClass)
     Create a SharedFlowController of the given type.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  sharedFlowClass - the type of the desired SharedFlowController.
public static  FlowControllerFactoryget(ServletContext servletContext)
     Get a FlowControllerFactory .
 LinkedHashMapgetDefaultSharedFlows(RequestContext context)
    
public  ClassgetFlowControllerClass(String className)
     Get a FlowController class.
public  FlowControllergetFlowControllerInstance(Class flowControllerClass)
     Get a FlowController instance, given a FlowController class.
Parameters:
  flowControllerClass - the Class, which must be assignable to FlowController.
public static  GlobalAppgetGlobalApp(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
     Get or create the current user session's GlobalApp instance (from the Global.app file). FlowControllerFactory.getSharedFlowsForRequest(RequestContext)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
public static  PageFlowControllergetPageFlow(String pageFlowClassName, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
     Create a page flow of the given type.
public static  PageFlowControllergetPageFlow(Class pageFlowClass, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
     Create a page flow of the given type.
public  PageFlowControllergetPageFlowForPath(RequestContext context, String path)
     Get the page flow instance that should be associated with the given path.
public static  PageFlowControllergetPageFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String path, ServletContext servletContext)
     Get the page flow instance that should be associated with the given path.
public  PageFlowControllergetPageFlowForRequest(RequestContext context)
     Get the page flow instance that should be associated with the given request.
public static  PageFlowControllergetPageFlowForRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
     Get the page flow instance that should be associated with the given request.
public static  PageFlowControllergetPageFlowForURI(HttpServletRequest request, HttpServletResponse response, String uri, ServletContext servletContext)
     Get the page flow instance that should be associated with the given URI.
public  MapgetSharedFlowsForPath(RequestContext context, String path)
     Get the map of shared flows for the given path.
public  MapgetSharedFlowsForRequest(RequestContext context)
     Get the map of shared flows for the given request.
public static  voidinit(ServletContext servletContext)
     Initialize an instance of this class in the ServletContext.
protected  voidreinit(ServletContext servletContext)
     Called to reinitialize this instance, most importantly after it has been serialized/deserialized.


Constructor Detail
FlowControllerFactory
protected FlowControllerFactory()(Code)




Method Detail
createPageFlow
public PageFlowController createPageFlow(RequestContext context, String pageFlowClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Create a PageFlowController of the given type. The PageFlowController stack used for nesting will be cleared or pushed, and the new instance will be stored as the current PageFlowController .
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  pageFlowClassName - the type name of the desired page flow. the newly-created PageFlowController, or null if none was found.



createPageFlow
public PageFlowController createPageFlow(RequestContext context, Class pageFlowClass) throws InstantiationException, IllegalAccessException(Code)
Create a PageFlowController of the given type. The PageFlowController stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current PageFlowController.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  pageFlowClass - the type of the desired PageFlowController. the newly-created PageFlowController, or null if none was found.



createSharedFlow
public SharedFlowController createSharedFlow(RequestContext context, String sharedFlowClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Create a SharedFlowController of the given type.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  sharedFlowClassName - the type name of the desired SharedFlowController. the newly-created SharedFlowController, or null if none was found.



createSharedFlow
public SharedFlowController createSharedFlow(RequestContext context, Class sharedFlowClass) throws InstantiationException, IllegalAccessException(Code)
Create a SharedFlowController of the given type.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  sharedFlowClass - the type of the desired SharedFlowController. the newly-created SharedFlowController, or null if none was found.



get
public static FlowControllerFactory get(ServletContext servletContext)(Code)
Get a FlowControllerFactory . The instance returned may or may not have been cached.
Parameters:
  servletContext - the current ServletContext. a FlowControllerFactory for the given ServletContext.



getDefaultSharedFlows
LinkedHashMap getDefaultSharedFlows(RequestContext context) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)



getFlowControllerClass
public Class getFlowControllerClass(String className) throws ClassNotFoundException(Code)
Get a FlowController class. By default, this loads the class using the thread context class loader.
Parameters:
  className - the name of the FlowController class to load. the loaded FlowController class.
throws:
  ClassNotFoundException - if the requested class could not be found.



getFlowControllerInstance
public FlowController getFlowControllerInstance(Class flowControllerClass) throws InstantiationException, IllegalAccessException(Code)
Get a FlowController instance, given a FlowController class.
Parameters:
  flowControllerClass - the Class, which must be assignable to FlowController. a new FlowController instance.



getGlobalApp
public static GlobalApp getGlobalApp(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)
Get or create the current user session's GlobalApp instance (from the Global.app file). FlowControllerFactory.getSharedFlowsForRequest(RequestContext)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse. the current session's GlobalApp instance, or a new one (based on Global.app) if none is found.If Global.app does not exist in the current webapp, null is returned.



getPageFlow
public static PageFlowController getPageFlow(String pageFlowClassName, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)
Create a page flow of the given type. The page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow. FlowControllerFactory.createPageFlow(RequestContext,String)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
Parameters:
  pageFlowClassName - the type name of the desired page flow.
Parameters:
  servletContext - the current ServletContext. the newly-created PageFlowController, or null if none was found.



getPageFlow
public static PageFlowController getPageFlow(Class pageFlowClass, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)
Create a page flow of the given type. The page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow. FlowControllerFactory.createPageFlow(RequestContext,Class)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
Parameters:
  pageFlowClass - the type of the desired page flow.
Parameters:
  servletContext - the current ServletContext. the newly-created PageFlowController, or null if none was found.



getPageFlowForPath
public PageFlowController getPageFlowForPath(RequestContext context, String path) throws InstantiationException, IllegalAccessException(Code)
Get the page flow instance that should be associated with the given path. If it doesn't exist, create it. If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  path - a webapp-relative path. The path should not contain the webapp context path. the PageFlowController for the given path, or null if none was found.



getPageFlowForRelativeURI
public static PageFlowController getPageFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String path, ServletContext servletContext)(Code)
Get the page flow instance that should be associated with the given path. If it doesn't exist, create it. If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow. FlowControllerFactory.getPageFlowForPath(RequestContext,String)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
Parameters:
  path - a webapp-relative path. The path should not contain the webapp context path.
Parameters:
  servletContext - the current ServletContext. the PageFlowController for the given path, or null if none was found.



getPageFlowForRequest
public PageFlowController getPageFlowForRequest(RequestContext context) throws InstantiationException, IllegalAccessException(Code)
Get the page flow instance that should be associated with the given request. If it doesn't exist, create it. If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow.
Parameters:
  context - a RequestContext object which contains the current request and response. the PageFlowController for the request, or null if none was found.



getPageFlowForRequest
public static PageFlowController getPageFlowForRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)
Get the page flow instance that should be associated with the given request. If it doesn't exist, create it. If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow. FlowControllerFactory.getPageFlowForRequest(RequestContext)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
Parameters:
  servletContext - the current ServletContext. the PageFlowController for the request, or null if none was found.



getPageFlowForURI
public static PageFlowController getPageFlowForURI(HttpServletRequest request, HttpServletResponse response, String uri, ServletContext servletContext)(Code)
Get the page flow instance that should be associated with the given URI. If it doesn't exist, create it. If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be stored as the current page flow. FlowControllerFactory.getPageFlowForPath(RequestContext,String)
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.
Parameters:
  uri - a server-relative URI. The URI should contain the webapp context path.
Parameters:
  servletContext - the current ServletContext. the PageFlowController for the given URI, or null if none was found.



getSharedFlowsForPath
public Map getSharedFlowsForPath(RequestContext context, String path) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Get the map of shared flows for the given path. The map is derived from the shared flows that are declared (through the sharedFlowRefs attribute of org.apache.beehive.netui.pageflow.annotations.Jpf.Controller @Jpf.Controller ) in the page flow for the path.
Parameters:
  context - a RequestContext object which contains the current request and response.
Parameters:
  path - a webapp-relative path. The path should not contain the webapp context path. a Map of shared-flow-name (String) to SharedFlowController.
throws:
  ClassNotFoundException - if a declared shared flow class could not be found.
throws:
  InstantiationException - if a declared shared flow class could not be instantiated.
throws:
  IllegalAccessException - if a declared shared flow class was not accessible.



getSharedFlowsForRequest
public Map getSharedFlowsForRequest(RequestContext context) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Get the map of shared flows for the given request. The map is derived from the shared flows that are declared (through the sharedFlowRefs attribute of org.apache.beehive.netui.pageflow.annotations.Jpf.Controller @Jpf.Controller ) in the page flow for the request.
Parameters:
  context - a RequestContext object which contains the current request and response. a Map of shared-flow-name (String) to SharedFlowController.
throws:
  ClassNotFoundException - if a declared shared flow class could not be found.
throws:
  InstantiationException - if a declared shared flow class could not be instantiated.
throws:
  IllegalAccessException - if a declared shared flow class was not accessible.



init
public static void init(ServletContext servletContext)(Code)
Initialize an instance of this class in the ServletContext. This is a framework-invoked method and should not normally be called directly.



reinit
protected void reinit(ServletContext servletContext)(Code)
Called to reinitialize this instance, most importantly after it has been serialized/deserialized.
Parameters:
  servletContext - the current ServletContext.



Methods inherited from org.apache.beehive.netui.core.factory.Factory
protected FactoryConfig getConfig()(Code)(Java Doc)
protected ServletContext getServletContext()(Code)(Java Doc)
protected void onCreate()(Code)(Java Doc)
protected void reinit(ServletContext servletContext)(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.