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

📄 turbineresourceservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!-- ============ 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="init(java.lang.Object)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(java.lang.Object&nbsp;data)          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Performs early initialization.  Overrides init() method in BaseService to detect objects used in Turbine's Service initialization and pass them to apropriate init() methods.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#init(java.lang.Object)">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(java.lang.Object)">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - An Object to use for initialization activities.<DT><B>Throws:</B><DD><CODE>InitializationException,</CODE> - if initialization of this class was not successful.</DL></DD></DL><HR><A NAME="init()"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>()          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Load all configured components and initialize them. This is a zero parameter variant which queries the Turbine Servlet for its config.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#init()">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong in the init         stage</DL></DD></DL><HR><A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(javax.servlet.ServletConfig&nbsp;config)          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>This method is called when the Service is initialized<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(javax.servlet.ServletConfig)">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>config</CODE> - a ServletConfig object<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong when starting up.</DL></DD></DL><HR><A NAME="setPropertiesFileName(java.lang.String)"><!-- --></A><H3>setPropertiesFileName</H3><PRE>public static void <B>setPropertiesFileName</B>(java.lang.String&nbsp;propertiesFileName)                                  throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>Init the service with the given properties filename<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertiesFileName</CODE> - The file name.<DT><B>Throws:</B><DD><CODE>IOException,</CODE> - if there was an I/O problem.</DL></DD></DL><HR><A NAME="setProperties(java.util.Properties)"><!-- --></A><H3>setProperties</H3><PRE>public static void <B>setProperties</B>(java.util.Properties&nbsp;properties)                          throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Init the service with the given properties object.  Called from Cocoon to initialize Turbine.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>properties</CODE> - The java.util.Properties object sent from another process such as                   Cocoon.  This Properties object contains all of the necessary properties                   found in the TurbineResources.properties file.<DT><B>Throws:</B><DD><CODE>TurbineException,</CODE> - if there was an I/O problem.</DL></DD></DL><HR><A NAME="setProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>setProperty</H3><PRE>public void <B>setProperty</B>(java.lang.String&nbsp;key,                        java.lang.String&nbsp;value)</PRE><DL><DD>Set a property in with a key=value pair.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>String</CODE> - key<DD><CODE>String</CODE> - value</DL></DD></DL><HR><A NAME="interpolate(java.lang.String)"><!-- --></A><H3>interpolate</H3><PRE>protected java.lang.String <B>interpolate</B>(java.lang.String&nbsp;base)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getConfiguration()"><!-- --></A><H3>getConfiguration</H3><PRE>public org.apache.commons.configuration.Configuration <B>getConfiguration</B>()</PRE><DL><DD>Wrapper around the configuration resources.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Service.html#getConfiguration()">getConfiguration</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Service.html">Service</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/BaseService.html#getConfiguration()">getConfiguration</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/BaseService.html">BaseService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A Configuration.</DL></DD></DL><HR><A NAME="getBoolean(java.lang.String)"><!-- --></A><H3>getBoolean</H3><PRE>public boolean <B>getBoolean</B>(java.lang.String&nbsp;name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a boolean value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getBoolean(java.lang.String)">getBoolean</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the named resource as a boolean.</DL></DD></DL><HR><A NAME="getBoolean(java.lang.String, boolean)"><!-- --></A><H3>getBoolean</H3><PRE>public boolean <B>getBoolean</B>(java.lang.String&nbsp;name,                          boolean&nbsp;def)</PRE><DL><DD>The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getBoolean(java.lang.String, boolean)">getBoolean</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the named resource as a boolean.</DL></DD></DL><HR><A NAME="getDouble(java.lang.String)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(java.lang.String&nbsp;name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a double.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getDouble(java.lang.String)">getDouble</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resoource name.<DT><B>Returns:</B><DD>The value of the named resource as double.</DL></DD></DL><HR><A NAME="getDouble(java.lang.String, double)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(java.lang.String&nbsp;name,                        double&nbsp;def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a double, or a default value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getDouble(java.lang.String, double)">getDouble</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the named resource as a double.</DL></DD></DL><HR><A NAME="getFloat(java.lang.String)"><!-- --></A><H3>getFloat</H3><PRE>public float <B>getFloat</B>(java.lang.String&nbsp;name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a float.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getFloat(java.lang.String)">getFloat</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as a float.</DL></DD></DL><HR><A NAME="getFloat(java.lang.String, float)"><!-- --></A><H3>getFloat</H3><PRE>public float <B>getFloat</B>(java.lang.String&nbsp;name,                      float&nbsp;def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a float, or a default value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getFloat(java.lang.String, float)">getFloat</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the resource as a float.</DL></DD></DL><HR><A NAME="getInt(java.lang.String)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(java.lang.String&nbsp;name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as an integer.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getInt(java.lang.String)">getInt</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></DL></DD><DD><DL>

⌨️ 快捷键说明

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