Java Doc for TurbinePullService.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.TurbineBaseService
   org.apache.turbine.services.pull.TurbinePullService

TurbinePullService
public class TurbinePullService extends TurbineBaseService implements PullService(Code)
This is the concrete implementation of the Turbine Pull Service.

These are tools that are placed in the context by the service These tools will be made available to all your templates. You list the tools in the following way:

 tool.<scope>.<id> = <classname>
 <scope>      is the tool scope: global, request, session,
 authorized or persistent (see below for more details)
 <id>         is the name of the tool in the context
 You can configure the tools in this way:
 tool.<id>.<parameter> = <value>
 So if you find "global", "request", "session" or "persistent" as second
 part, it is a configuration to put a tool into the toolbox, else it is a
 tool specific configuration.
 For example:
 tool.global.ui    = org.apache.turbine.util.pull.UIManager
 tool.global.mm    = org.apache.turbine.util.pull.MessageManager
 tool.request.link = org.apache.turbine.services.pull.tools.TemplateLink
 tool.request.page = org.apache.turbine.util.template.HtmlPageAttributes
 Then:
 tool.ui.skin = default
 configures the value of "skin" for the "ui" tool.
 Tools are accessible in all templates by the  given
 to the tool. So for the above listings the UIManager would
 be available as $ui, the MessageManager as $mm, the TemplateLink
 as $link and the HtmlPageAttributes as $page.
 You should avoid using tool names called "global", "request",
 "session" or "persistent" because of clashes with the possible Scopes.
 Scopes:
 global:     tool is instantiated once and that instance is available
 to all templates for all requests. Tool must be threadsafe.
 request:    tool is instantiated once for each request (although the
 PoolService is used to recycle instances). Tool need not
 be threadsafe.
 session:    tool is instantiated once for each user session, and is
 stored in the session.  These tools do not need to be
 threadsafe.
 authorized: tool is instantiated once for each user session once the
 user logs in. After this, it is a normal session tool.
 persistent: tool is instantiated once for each user session once
 the user logs in and is is stored in the user's permanent
 hashtable.
 This means for a logged in user the tool will be persisted
 in the user's objectdata. Tool should be Serializable.  These
 tools do not need to be threadsafe.
 persistent scope tools are deprecated in 2.3
 Defaults: none
 

author:
   Jason van Zyl
author:
   Sean Legassick
author:
   Henning P. Schmiedehausen
author:
   Quinton McCombs
version:
   $Id: TurbinePullService.java 535743 2007-05-07 05:13:47Z seade $




Method Summary
public  StringgetAbsolutePathToResourcesDirectory()
     Return the absolute path to the resources directory used by the application tools.
public  ContextgetGlobalContext()
     Return the Context which contains all global tools that are to be used in conjunction with the Turbine Pull Model.
public  StringgetResourcesDirectory()
     Return the resources directory.
public  voidinit()
     Called the first time the Service is used.
public  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).
public  voidrefreshGlobalTools()
     Refresh the global tools.
public  booleanrefreshToolsPerRequest()
     Should we refresh the ToolBox on a per request basis.
public  voidreleaseTools(Context context)
    



Method Detail
getAbsolutePathToResourcesDirectory
public String getAbsolutePathToResourcesDirectory()(Code)
Return the absolute path to the resources directory used by the application tools. the absolute path of the resources directory



getGlobalContext
public Context getGlobalContext()(Code)
Return the Context which contains all global tools that are to be used in conjunction with the Turbine Pull Model. The tools are refreshed every time the global Context is pulled.



getResourcesDirectory
public String getResourcesDirectory()(Code)
Return the resources directory. This is relative to the web context. the relative path of the resources directory



init
public void init() throws InitializationException(Code)
Called the first time the Service is used.



populateContext
public 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
public void refreshGlobalTools()(Code)
Refresh the global tools. We can only refresh those tools that adhere to ApplicationTool interface because we know those types of tools have a refresh method.



refreshToolsPerRequest
public boolean refreshToolsPerRequest()(Code)
Should we refresh the ToolBox on a per request basis.



releaseTools
public void releaseTools(Context context)(Code)
Release the request-scope tool instances in the given Context back to the pool
Parameters:
  context - the Velocity Context to release tools from



Methods inherited from org.apache.turbine.services.TurbineBaseService
public void init(Object data) throws InitializationException(Code)(Java Doc)
public void init(ServletConfig config) throws InitializationException(Code)(Java Doc)
public void init(RunData data) throws InitializationException(Code)(Java Doc)
public void init() throws InitializationException(Code)(Java Doc)
public void shutdown()(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.