📄 definitionsutil.html
字号:
<P>
<DD>Create Definition factory. If a factory class name is provided, a factory of this class is created. Otherwise, default factory is created.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>classname</CODE> - Class name of the factory to create.<DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>properties</CODE> - Map of name/property used to initialize factory configuration object.<DT><B>Returns:</B><DD>newly created factory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>
<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, java.util.Map)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext servletContext, java.util.Map properties) throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create default Definition factory.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>properties</CODE> - Map of name/property used to initialize factory configuration object.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>
<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, javax.servlet.ServletConfig)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext servletContext, javax.servlet.ServletConfig servletConfig) throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object. <p> Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>servletConfig</CODE> - Servlet config containing parameters to be passed to factory configuration object.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>
<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, javax.servlet.ServletConfig, boolean)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext servletContext, javax.servlet.ServletConfig servletConfig, boolean checkIfExist) throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object. <p> If checkIfExist is true, start by checking if factory already exist. If yes, return it. If no, create a new one. <p> If checkIfExist is false, factory is always created. <p> Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>servletConfig</CODE> - Servlet config containing parameters to be passed to factory configuration object.<DD><CODE>checkIfExist</CODE> - Check if factory already exist. If true and factory exist, return it. If true and factory doesn't exist, create it. If false, create it in all cases.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>
<A NAME="getDefinitionsFactory(javax.servlet.ServletContext)"><!-- --></A><H3>
getDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>getDefinitionsFactory</B>(javax.servlet.ServletContext servletContext)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/struts/tiles/TilesUtil.html#getDefinitionsFactory(javax.servlet.ServletRequest, javax.servlet.ServletContext)"><CODE>TilesUtil.getDefinitionsFactory(ServletRequest, ServletContext)</CODE></A></I>
<P>
<DD>Get definition factory from appropriate servlet context.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Definitions factory or null if not found.<DT><B>Since: </B><DD>20020708</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getActionDefinition(javax.servlet.ServletRequest)"><!-- --></A><H3>
getActionDefinition</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A> <B>getActionDefinition</B>(javax.servlet.ServletRequest request)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get Definition stored in jsp context by an action.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>ComponentDefinition or null if not found.</DL>
</DD>
</DL>
<HR>
<A NAME="setActionDefinition(javax.servlet.ServletRequest, org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
setActionDefinition</H3>
<PRE>
public static void <B>setActionDefinition</B>(javax.servlet.ServletRequest request, <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A> definition)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Store definition in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="removeActionDefinition(javax.servlet.ServletRequest, org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
removeActionDefinition</H3>
<PRE>
public static void <B>removeActionDefinition</B>(javax.servlet.ServletRequest request, <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A> definition)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Remove Definition stored in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="populateDefinitionsFactoryConfig(org.apache.struts.tiles.DefinitionsFactoryConfig, javax.servlet.ServletConfig)"><!-- --></A><H3>
populateDefinitionsFactoryConfig</H3>
<PRE>
public static void <B>populateDefinitionsFactoryConfig</B>(<A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryConfig.html">DefinitionsFactoryConfig</A> factoryConfig, javax.servlet.ServletConfig servletConfig) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Populate Definition Factory Config from web.xml properties.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factoryConfig</CODE> - Definition Factory Config to populate.<DD><CODE>servletConfig</CODE> - Current servlet config containing web.xml properties.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalAccessException</CODE> - if the caller does not have access to the property accessor method<DD><CODE>java.lang.reflect.InvocationTargetException</CODE> - if the property accessor method throws an exception<DT><B>Since: </B><DD>tiles 20020708</DD>
<DT><B>See Also: </B><DD><CODE>BeanUtils</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="readFactoryConfig(javax.servlet.ServletConfig)"><!-- --></A><H3>
readFactoryConfig</H3>
<PRE>
protected static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryConfig.html">DefinitionsFactoryConfig</A> <B>readFactoryConfig</B>(javax.servlet.ServletConfig servletConfig) throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create FactoryConfig and initialize it from web.xml.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletConfig</CODE> - ServletConfig for the module with which this plug in is associated<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - if this <code>PlugIn</code> cannot be successfully initialized</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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefinitionsUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryConfig.html"><B>PREV CLASS</B></A>
<A HREF="../../../../org/apache/struts/tiles/DefinitionsUtil.ServletPropertiesMap.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>
<A HREF="DefinitionsUtil.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -