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


java.lang.Object
   org.apache.turbine.services.pull.TurbinePull

TurbinePull
abstract public class TurbinePull (Code)
This is a Facade class for PullService. This class provides static methods that call related methods of the implementation of the PullService used by the System, according to the settings in TurbineResources.
author:
   Jason van Zyl
author:
   Daniel Rall
author:
   Henning P. Schmiedehausen
version:
   $Id: TurbinePull.java 534527 2007-05-02 16:10:59Z tv $




Method Summary
final public static  StringgetAbsolutePathToResourcesDirectory()
     Return the absolute path of the resources directory used by application tools.
final public static  ContextgetGlobalContext()
     Get the context containing global tools that will be use as part of the Turbine Pull Model.
final public static  StringgetResourcesDirectory()
     Return the resources directory.
public static  PullServicegetService()
    
public static  ApplicationToolgetTool(Context context, String name)
     Helper method that allows you to easily get a tool from a Context.
final public static  booleanisRegistered()
     Checks whether this service has been registered.
public static  voidpopulateContext(Context context, RunData data)
     Populate the given context with all request, session and persistent scope tools (it is assumed that the context already wraps the global context, and thus already contains the global tools).
final public static  voidrefreshGlobalTools()
     Refresh the global tools.
final public static  booleanrefreshToolsPerRequest()
     Shoud we refresh the tools on each request.
public static  voidreleaseTools(Context context)
    



Method Detail
getAbsolutePathToResourcesDirectory
final public static 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
final public static 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
final public static 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.



getService
public static PullService getService()(Code)
Utility method for accessing the service implementation a PullService implementation instance



getTool
public static ApplicationTool getTool(Context context, String name)(Code)
Helper method that allows you to easily get a tool from a Context. Essentially, it just does the cast to an Application tool for you.
Parameters:
  context - a Velocity Context to get tools from
Parameters:
  name - the name of the tool to get ApplicationTool null if no tool could be found



isRegistered
final public static boolean isRegistered()(Code)
Checks whether this service has been registered. This is required by the TurbineVelocityService so it can determine whether to attempt to place the ToolBox in the context.

So users can use Turbine with templates in the traditional manner. If the Pull Service is not listed in TurbineResources.props, or no tools are specified the TurbineVelocityService will behave in its traditional manner.




populateContext
public static void populateContext(Context context, RunData data)(Code)
Populate the given context with all request, session 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
final public static void refreshGlobalTools()(Code)
Refresh the global tools. This is necessary for development work where tools depend on configuration information. The configuration information is typically cached after initialization but during development you might want the tool to refresh itself on each request.

If there are objects that don't implement the ApplicationTool interface, then they won't be refreshed.




refreshToolsPerRequest
final public static 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
public static 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



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.