Java Doc for PullService.java in  » Web-Framework » TURBINE » org » apache » turbine » services » pull » 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 » TURBINE » org.apache.turbine.services.pull 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.turbine.services.pull.PullService

All known Subclasses:   org.apache.turbine.services.pull.TurbinePullService,
PullService
public interface PullService extends Service(Code)
The Pull Service manages the creation of application tools that are available to all templates in a Turbine application. By using the Pull Service you can avoid having to make Screens to populate a context for use in a particular template. The Pull Service creates a set of tools, as specified in the TR.props file. These tools can have global scope, request scope, authorized or session scope (i.e. stored in user temp hashmap) or persistent scope (i.e. stored in user perm hashmap) The standard way of referencing these global tools is through the toolbox handle. This handle is typically $toolbox, but can be specified in the TR.props file. So, for example, if you had a UI Manager tool which created a set of UI attributes from a properties file, and one of the properties was 'bgcolor', then you could access this UI attribute with $ui.bgcolor. The identifier that is given to the tool, in this case 'ui', can be specified as well.
author:
   Jason van Zyl
author:
   Henning P. Schmiedehausen
version:
   $Id: PullService.java 534527 2007-05-02 16:10:59Z tv $


Field Summary
 StringAUTHORIZED_TOOL
    
 StringGLOBAL_TOOL
    
 StringPERSISTENT_TOOL
    
 StringREQUEST_TOOL
    
 StringSERVICE_NAME
     The key under which this service is stored in TurbineServices.
 StringSESSION_TOOL
    
 StringSESSION_TOOLS_ATTRIBUTE_PREFIX
    
 booleanTOOLS_PER_REQUEST_REFRESH_DEFAULT
    
 StringTOOLS_PER_REQUEST_REFRESH_KEY
    
 StringTOOL_RESOURCES_DIR_DEFAULT
     Default value for the application tool resources.
 StringTOOL_RESOURCES_DIR_KEY
    


Method Summary
 StringgetAbsolutePathToResourcesDirectory()
     Return the absolute path of the resources directory used by application tools.
 ContextgetGlobalContext()
     Get the context containing global tools that will be use as part of the Turbine Pull Model.
 StringgetResourcesDirectory()
     Return the resources directory.
 voidpopulateContext(Context context, RunData data)
     Populate the given context with all request, session, authorized and persistent scope tools (it is assumed that the context already wraps the global context, and thus already contains the global tools).
 voidrefreshGlobalTools()
     Refresh the global tools .
 booleanrefreshToolsPerRequest()
     Shoud we refresh the tools on each request.
 voidreleaseTools(Context context)
    

Field Detail
AUTHORIZED_TOOL
String AUTHORIZED_TOOL(Code)
Property Key for the authorized tools



GLOBAL_TOOL
String GLOBAL_TOOL(Code)
Property Key for the global tools



PERSISTENT_TOOL
String PERSISTENT_TOOL(Code)
Property Key for the persistent tools



REQUEST_TOOL
String REQUEST_TOOL(Code)
Property Key for the request tools



SERVICE_NAME
String SERVICE_NAME(Code)
The key under which this service is stored in TurbineServices.



SESSION_TOOL
String SESSION_TOOL(Code)
Property Key for the session tools



SESSION_TOOLS_ATTRIBUTE_PREFIX
String SESSION_TOOLS_ATTRIBUTE_PREFIX(Code)
prefix for key used in the session to store session scope pull tools



TOOLS_PER_REQUEST_REFRESH_DEFAULT
boolean TOOLS_PER_REQUEST_REFRESH_DEFAULT(Code)
Default value for per request tool refreshing



TOOLS_PER_REQUEST_REFRESH_KEY
String TOOLS_PER_REQUEST_REFRESH_KEY(Code)
Property tag for per request tool refreshing (for obvious reasons has no effect for per-request tools)



TOOL_RESOURCES_DIR_DEFAULT
String TOOL_RESOURCES_DIR_DEFAULT(Code)
Default value for the application tool resources. This is relative to the webapp root



TOOL_RESOURCES_DIR_KEY
String TOOL_RESOURCES_DIR_KEY(Code)
Property tag for application tool resources directory





Method Detail
getAbsolutePathToResourcesDirectory
String getAbsolutePathToResourcesDirectory()(Code)
Return the absolute path of the resources directory used by application tools. A directory path in the file system or null.



getGlobalContext
Context getGlobalContext()(Code)
Get the context containing global tools that will be use as part of the Turbine Pull Model. A Context object which contains theGlobal Tool instances.



getResourcesDirectory
String getResourcesDirectory()(Code)
Return the resources directory. This is relative to the webapp context. A directory path to the resources directory relative to the webapp root or null.



populateContext
void populateContext(Context context, RunData data)(Code)
Populate the given context with all request, session, authorized and persistent scope tools (it is assumed that the context already wraps the global context, and thus already contains the global tools).
Parameters:
  context - a Velocity Context to populate
Parameters:
  data - a RunData object for request specific data



refreshGlobalTools
void refreshGlobalTools()(Code)
Refresh the global tools .



refreshToolsPerRequest
boolean refreshToolsPerRequest()(Code)
Shoud we refresh the tools on each request. For development purposes. true if we should refresh the tools on every request.



releaseTools
void releaseTools(Context context)(Code)
Release tool instances from the given context to the object pool
Parameters:
  context - a Velocity Context to release tools from



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