Home » Xerces-J-src.2.9.1 » org.apache.xerces » parsers » [javadoc | source]
org.apache.xerces.parsers
final class: ObjectFactory [javadoc | source]
java.lang.Object
   org.apache.xerces.parsers.ObjectFactory
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.

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.

Nested Class Summary:
static final class  ObjectFactory.ConfigurationError  A configuration error. 
Method from org.apache.xerces.parsers.ObjectFactory Summary:
createObject,   createObject,   findClassLoader,   findProviderClass,   newInstance
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.parsers.ObjectFactory Detail:
 static Object createObject(String factoryId,
    String fallbackClassName) throws ObjectFactory.ConfigurationError 
    Finds the implementation Class object in the specified order. The specified order is the following:
    1. query the system property using System.getProperty
    2. read META-INF/services/factoryId file
    3. use fallback classname
 static Object createObject(String factoryId,
    String propertiesFilename,
    String fallbackClassName) throws ObjectFactory.ConfigurationError 
    Finds the implementation Class object in the specified order. The specified order is the following:
    1. query the system property using System.getProperty
    2. read $java.home/lib/propertiesFilename file
    3. read META-INF/services/factoryId file
    4. use fallback classname
 static ClassLoader findClassLoader() throws ObjectFactory.ConfigurationError 
    Figure out which ClassLoader to use. For JDK 1.2 and later use the context ClassLoader.
 static Class findProviderClass(String className,
    ClassLoader cl,
    boolean doFallback) throws ObjectFactory.ConfigurationError, ClassNotFoundException 
    Find a Class using the specified ClassLoader
 static Object newInstance(String className,
    ClassLoader cl,
    boolean doFallback) throws ObjectFactory.ConfigurationError 
    Create an instance of a class using the specified ClassLoader