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

📄 resourceservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getLong(java.lang.String, long)">getLong</A></B>(java.lang.String&nbsp;name,        long&nbsp;def)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a long, or a default value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getResources(java.lang.String)">getResources</A></B>(java.lang.String&nbsp;prefix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to extract a subset of configuration resources sharing a common name prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getString(java.lang.String)">getString</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getString(java.lang.String, java.lang.String)">getString</A></B>(java.lang.String&nbsp;name,          java.lang.String&nbsp;def)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a string, or a default value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getStringArray(java.lang.String)">getStringArray</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a string array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getVector(java.lang.String)">getVector</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a vector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#getVector(java.lang.String, java.util.Vector)">getVector</A></B>(java.lang.String&nbsp;name,          java.util.Vector&nbsp;def)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></B>(java.lang.String&nbsp;key,            java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a property in with a key=value pair.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.Service"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/Service.html">Service</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/Service.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#getName()">getName</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#getProperties()">getProperties</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#setName(java.lang.String)">setName</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#setServiceBroker(org.apache.turbine.services.ServiceBroker)">setServiceBroker</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.Initable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#getInit()">getInit</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#init()">init</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#init(java.lang.Object)">init</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#setInitableBroker(org.apache.turbine.services.InitableBroker)">setInitableBroker</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#shutdown()">shutdown</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="SERVICE_NAME"><!-- --></A><H3>SERVICE_NAME</H3><PRE>public static final java.lang.String <B>SERVICE_NAME</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="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></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>String</CODE> - key<DD><CODE>String</CODE> - value</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></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></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></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></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></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></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

⌨️ 快捷键说明

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