<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:38 PDT 2012 --> | |
<TITLE> | |
ObjectFactory | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.xml.utils.ObjectFactory class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="ObjectFactory"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<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/ObjectFactory.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/xml/utils/NSInfo.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/ObjectFactory.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ObjectFactory.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: <A HREF="#nested_class_summary">NESTED</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> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.xml.utils</FONT> | |
<BR> | |
Class ObjectFactory</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.utils.ObjectFactory</B> | |
</PRE> | |
<HR> | |
<DL> | |
<DT><PRE>final class <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.50"><B>ObjectFactory</B></A><DT>extends java.lang.Object</DL> | |
</PRE> | |
<P> | |
This class is duplicated for each JAXP subpackage so keep it in sync. | |
It is package private and therefore is not exposed as part of the JAXP | |
API. | |
<p> | |
This code is designed to implement the JAXP 1.1 spec pluggability | |
feature and is designed to run on JDK version 1.1 and | |
later, and to compile on JDK 1.2 and onward. | |
The code also runs both as part of an unbundled jar file and | |
when bundled as part of the JDK. | |
<p> | |
This class was moved from the <code>javax.xml.parsers.ObjectFactory</code> | |
class and modified to be used as a general utility for creating objects | |
dynamically. | |
<P> | |
<P> | |
<HR> | |
<P> | |
<!-- ======== NESTED CLASS SUMMARY ======== --> | |
<A NAME="nested_class_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Nested Class Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static class</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></B></CODE> | |
<BR> | |
A configuration error.</TD> | |
</TR> | |
</TABLE> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#DEBUG">DEBUG</A></B></CODE> | |
<BR> | |
Set to true for debugging</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#DEFAULT_PROPERTIES_FILENAME">DEFAULT_PROPERTIES_FILENAME</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static long</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#fLastModified">fLastModified</A></B></CODE> | |
<BR> | |
Cache the time stamp of the xalan.properties file so | |
that we know if it's been modified and can invalidate | |
the cache when necessary.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.util.Properties</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#fXalanProperties">fXalanProperties</A></B></CODE> | |
<BR> | |
cache the contents of the xalan.properties file.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#SERVICES_PATH">SERVICES_PATH</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#ObjectFactory()">ObjectFactory</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#createObject(java.lang.String, java.lang.String)">createObject</A></B>(java.lang.String factoryId, | |
java.lang.String fallbackClassName)</CODE> | |
<BR> | |
Finds the implementation Class object in the specified order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#createObject(java.lang.String, java.lang.String, java.lang.String)">createObject</A></B>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName)</CODE> | |
<BR> | |
Finds the implementation Class object in the specified order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#debugPrintln(java.lang.String)">debugPrintln</A></B>(java.lang.String msg)</CODE> | |
<BR> | |
Prints a message to standard error if debugging is enabled.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.ClassLoader</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#findClassLoader()">findClassLoader</A></B>()</CODE> | |
<BR> | |
Figure out which ClassLoader to use.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#findJarServiceProviderName(java.lang.String)">findJarServiceProviderName</A></B>(java.lang.String factoryId)</CODE> | |
<BR> | |
Find the name of service provider using Jar Service Provider Mechanism</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Class</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#findProviderClass(java.lang.String, java.lang.ClassLoader, boolean)">findProviderClass</A></B>(java.lang.String className, | |
java.lang.ClassLoader cl, | |
boolean doFallback)</CODE> | |
<BR> | |
Find a Class using the specified ClassLoader</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Class</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#lookUpFactoryClass(java.lang.String)">lookUpFactoryClass</A></B>(java.lang.String factoryId)</CODE> | |
<BR> | |
Finds the implementation Class object in the specified order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Class</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#lookUpFactoryClass(java.lang.String, java.lang.String, java.lang.String)">lookUpFactoryClass</A></B>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName)</CODE> | |
<BR> | |
Finds the implementation Class object in the specified order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#lookUpFactoryClassName(java.lang.String, java.lang.String, java.lang.String)">lookUpFactoryClassName</A></B>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName)</CODE> | |
<BR> | |
Finds the name of the required implementation class in the specified | |
order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) static java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectFactory.html#newInstance(java.lang.String, java.lang.ClassLoader, boolean)">newInstance</A></B>(java.lang.String className, | |
java.lang.ClassLoader cl, | |
boolean doFallback)</CODE> | |
<BR> | |
Create an instance of a class using the specified ClassLoader</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="DEFAULT_PROPERTIES_FILENAME"><!-- --></A><H3> | |
DEFAULT_PROPERTIES_FILENAME</H3> | |
<PRE> | |
private static final java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.57"><B>DEFAULT_PROPERTIES_FILENAME</B></A></PRE> | |
<DL> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xml.utils.ObjectFactory.DEFAULT_PROPERTIES_FILENAME">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="SERVICES_PATH"><!-- --></A><H3> | |
SERVICES_PATH</H3> | |
<PRE> | |
private static final java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.60"><B>SERVICES_PATH</B></A></PRE> | |
<DL> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xml.utils.ObjectFactory.SERVICES_PATH">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="DEBUG"><!-- --></A><H3> | |
DEBUG</H3> | |
<PRE> | |
private static final boolean <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.63"><B>DEBUG</B></A></PRE> | |
<DL> | |
<DD>Set to true for debugging | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xml.utils.ObjectFactory.DEBUG">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="fXalanProperties"><!-- --></A><H3> | |
fXalanProperties</H3> | |
<PRE> | |
private static java.util.Properties <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.70"><B>fXalanProperties</B></A></PRE> | |
<DL> | |
<DD>cache the contents of the xalan.properties file. | |
Until an attempt has been made to read this file, this will | |
be null; if the file does not exist or we encounter some other error | |
during the read, this will be empty. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="fLastModified"><!-- --></A><H3> | |
fLastModified</H3> | |
<PRE> | |
private static long <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.77"><B>fLastModified</B></A></PRE> | |
<DL> | |
<DD>Cache the time stamp of the xalan.properties file so | |
that we know if it's been modified and can invalidate | |
the cache when necessary. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="ObjectFactory()"><!-- --></A><H3> | |
ObjectFactory</H3> | |
<PRE> | |
<A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.50"><B>ObjectFactory</B></A>()</PRE> | |
<DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="createObject(java.lang.String, java.lang.String)"><!-- --></A><H3> | |
createObject</H3> | |
<PRE> | |
static java.lang.Object <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.101"><B>createObject</B></A>(java.lang.String factoryId, | |
java.lang.String fallbackClassName) | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Finds the implementation Class object in the specified order. The | |
specified order is the following: | |
<ol> | |
<li>query the system property using <code>System.getProperty</code> | |
<li>read <code>META-INF/services/<i>factoryId</i></code> file | |
<li>use fallback classname | |
</ol> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as | |
a property name<DD><CODE>fallbackClassName</CODE> - Implementation class name, if nothing else | |
is found. Use null to mean no fallback. | |
<DT><B>Returns:</B><DD>instance of factory, never null | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="createObject(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> | |
createObject</H3> | |
<PRE> | |
static java.lang.Object <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.128"><B>createObject</B></A>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName) | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Finds the implementation Class object in the specified order. The | |
specified order is the following: | |
<ol> | |
<li>query the system property using <code>System.getProperty</code> | |
<li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file | |
<li>read <code>META-INF/services/<i>factoryId</i></code> file | |
<li>use fallback classname | |
</ol> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as | |
a property name<DD><CODE>propertiesFilename</CODE> - The filename in the $java.home/lib directory | |
of the properties file. If none specified, | |
${java.home}/lib/xalan.properties will be used.<DD><CODE>fallbackClassName</CODE> - Implementation class name, if nothing else | |
is found. Use null to mean no fallback. | |
<DT><B>Returns:</B><DD>instance of factory, never null | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lookUpFactoryClass(java.lang.String)"><!-- --></A><H3> | |
lookUpFactoryClass</H3> | |
<PRE> | |
static java.lang.Class <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.175"><B>lookUpFactoryClass</B></A>(java.lang.String factoryId) | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Finds the implementation Class object in the specified order. The | |
specified order is the following: | |
<ol> | |
<li>query the system property using <code>System.getProperty</code> | |
<li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file | |
<li>read <code>META-INF/services/<i>factoryId</i></code> file | |
<li>use fallback classname | |
</ol> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as | |
a property name<DD><CODE>propertiesFilename</CODE> - The filename in the $java.home/lib directory | |
of the properties file. If none specified, | |
${java.home}/lib/xalan.properties will be used.<DD><CODE>fallbackClassName</CODE> - Implementation class name, if nothing else | |
is found. Use null to mean no fallback. | |
<DT><B>Returns:</B><DD>Class object of factory, never null | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lookUpFactoryClass(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> | |
lookUpFactoryClass</H3> | |
<PRE> | |
static java.lang.Class <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.203"><B>lookUpFactoryClass</B></A>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName) | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Finds the implementation Class object in the specified order. The | |
specified order is the following: | |
<ol> | |
<li>query the system property using <code>System.getProperty</code> | |
<li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file | |
<li>read <code>META-INF/services/<i>factoryId</i></code> file | |
<li>use fallback classname | |
</ol> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as | |
a property name<DD><CODE>propertiesFilename</CODE> - The filename in the $java.home/lib directory | |
of the properties file. If none specified, | |
${java.home}/lib/xalan.properties will be used.<DD><CODE>fallbackClassName</CODE> - Implementation class name, if nothing else | |
is found. Use null to mean no fallback. | |
<DT><B>Returns:</B><DD>Class object that provides factory service, never null | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lookUpFactoryClassName(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> | |
lookUpFactoryClassName</H3> | |
<PRE> | |
static java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.257"><B>lookUpFactoryClassName</B></A>(java.lang.String factoryId, | |
java.lang.String propertiesFilename, | |
java.lang.String fallbackClassName)</PRE> | |
<DL> | |
<DD>Finds the name of the required implementation class in the specified | |
order. The specified order is the following: | |
<ol> | |
<li>query the system property using <code>System.getProperty</code> | |
<li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file | |
<li>read <code>META-INF/services/<i>factoryId</i></code> file | |
<li>use fallback classname | |
</ol> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as | |
a property name<DD><CODE>propertiesFilename</CODE> - The filename in the $java.home/lib directory | |
of the properties file. If none specified, | |
${java.home}/lib/xalan.properties will be used.<DD><CODE>fallbackClassName</CODE> - Implementation class name, if nothing else | |
is found. Use null to mean no fallback. | |
<DT><B>Returns:</B><DD>name of class that provides factory service, never null | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="debugPrintln(java.lang.String)"><!-- --></A><H3> | |
debugPrintln</H3> | |
<PRE> | |
private static void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.381"><B>debugPrintln</B></A>(java.lang.String msg)</PRE> | |
<DL> | |
<DD>Prints a message to standard error if debugging is enabled. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="findClassLoader()"><!-- --></A><H3> | |
findClassLoader</H3> | |
<PRE> | |
static java.lang.ClassLoader <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.391"><B>findClassLoader</B></A>() | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Figure out which ClassLoader to use. For JDK 1.2 and later use | |
the context ClassLoader. | |
<P> | |
<DD><DL> | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="newInstance(java.lang.String, java.lang.ClassLoader, boolean)"><!-- --></A><H3> | |
newInstance</H3> | |
<PRE> | |
static java.lang.Object <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.448"><B>newInstance</B></A>(java.lang.String className, | |
java.lang.ClassLoader cl, | |
boolean doFallback) | |
throws <A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Create an instance of a class using the specified ClassLoader | |
<P> | |
<DD><DL> | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="findProviderClass(java.lang.String, java.lang.ClassLoader, boolean)"><!-- --></A><H3> | |
findProviderClass</H3> | |
<PRE> | |
static java.lang.Class <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.472"><B>findProviderClass</B></A>(java.lang.String className, | |
java.lang.ClassLoader cl, | |
boolean doFallback) | |
throws java.lang.ClassNotFoundException, | |
<A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></PRE> | |
<DL> | |
<DD>Find a Class using the specified ClassLoader | |
<P> | |
<DD><DL> | |
<DT><B>Throws:</B> | |
<DD><CODE>java.lang.ClassNotFoundException</CODE> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils">ObjectFactory.ConfigurationError</A></CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="findJarServiceProviderName(java.lang.String)"><!-- --></A><H3> | |
findJarServiceProviderName</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/ObjectFactory.html#line.531"><B>findJarServiceProviderName</B></A>(java.lang.String factoryId)</PRE> | |
<DL> | |
<DD>Find the name of service provider using Jar Service Provider Mechanism | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>instance of provider class if found or null</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<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/ObjectFactory.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/xml/utils/NSInfo.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/ObjectFactory.ConfigurationError.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/ObjectFactory.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ObjectFactory.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: <A HREF="#nested_class_summary">NESTED</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> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |