⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbinepull.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TurbinePull()"><!-- --></A><H3>TurbinePull</H3><PRE>public <B>TurbinePull</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getService()"><!-- --></A><H3>getService</H3><PRE>protected static <A HREF="../../../../../org/apache/turbine/services/pull/PullService.html">PullService</A> <B>getService</B>()</PRE><DL><DD>Utility method for accessing the service  implementation<DD><DL><DT><B>Returns:</B><DD>a PullService implementation instance</DL></DD></DL><HR><A NAME="getGlobalContext()"><!-- --></A><H3>getGlobalContext</H3><PRE>public static final org.apache.velocity.context.Context <B>getGlobalContext</B>()</PRE><DL><DD>Get the ToolBox that was created by Pull Service during early initialization. This method is used by the various template services that are available for use in Turbine, but specifically the TurbineVelocityService.</DL><HR><A NAME="isRegistered()"><!-- --></A><H3>isRegistered</H3><PRE>public static final boolean <B>isRegistered</B>()</PRE><DL><DD>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. <p> So users can use Turbine with templates in the traditional manner. If the Pull Service is not listed in <code>TurbineResources.props</code>, or no tools are specified the TurbineVelocityService will behave in its traditional manner.</DL><HR><A NAME="getAbsolutePathToResourcesDirectory()"><!-- --></A><H3>getAbsolutePathToResourcesDirectory</H3><PRE>public static final java.lang.String <B>getAbsolutePathToResourcesDirectory</B>()</PRE><DL><DD>Return the absolute path of resources directory where tools store resource information.</DL><HR><A NAME="getResourcesDirectory()"><!-- --></A><H3>getResourcesDirectory</H3><PRE>public static final java.lang.String <B>getResourcesDirectory</B>()</PRE><DL><DD>Return the resources directory. This is relative to the webapp context.</DL><HR><A NAME="populateContext(org.apache.velocity.context.Context, org.apache.turbine.util.RunData)"><!-- --></A><H3>populateContext</H3><PRE>public static void <B>populateContext</B>(org.apache.velocity.context.Context&nbsp;context,                                   <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD>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).<DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - a Velocity Context to populate<DD><CODE>data</CODE> - a RunData object for request specific data</DL></DD></DL><HR><A NAME="refreshGlobalTools()"><!-- --></A><H3>refreshGlobalTools</H3><PRE>public static final void <B>refreshGlobalTools</B>()</PRE><DL><DD>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. <p> If there are objects that don't implement application ApplicationTool then they won't be refreshed.</DL><HR><A NAME="refreshToolsPerRequest()"><!-- --></A><H3>refreshToolsPerRequest</H3><PRE>public static final boolean <B>refreshToolsPerRequest</B>()</PRE><DL><DD>Shoud we refresh the tools on each request. For development purposes.</DL><HR><A NAME="releaseTools(org.apache.velocity.context.Context)"><!-- --></A><H3>releaseTools</H3><PRE>public static void <B>releaseTools</B>(org.apache.velocity.context.Context&nbsp;context)</PRE><DL><DD>Release tool instances from the given context to the object pool<DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - a Velocity Context to release tools from</DL></DD></DL><HR><A NAME="getTool(org.apache.velocity.context.Context, java.lang.String)"><!-- --></A><H3>getTool</H3><PRE>public static <A HREF="../../../../../org/apache/turbine/services/pull/ApplicationTool.html">ApplicationTool</A> <B>getTool</B>(org.apache.velocity.context.Context&nbsp;context,                                      java.lang.String&nbsp;name)</PRE><DL><DD>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.<DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - a Velocity Context to get tools from<DD><CODE>name</CODE> - the name of the tool to get<DT><B>Returns:</B><DD>ApplicationTool null if no tool could be found</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TurbinePull.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../org/apache/turbine/services/pull/TurbinePullService.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TurbinePull.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -