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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ObjectFactory.ConfigurationError
A configuration error. |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | DEBUG
Set to true for debugging |
| private static final int | DEFAULT_LINE_LENGTH
Default columns per line. |
| private static final String | |
| private static long | fLastModified
Cache the time stamp of the xerces.properties file so that we know if it's been modified and can invalidate the cache when necessary. |
| private static Properties | fXercesProperties
cache the contents of the xerces.properties file. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Object | Returns: Class object of factory, never nullName of the factory to find, same as
a property name factoryId, String Implementation class name, if nothing else
is found. Use null to mean no fallback. fallbackClassName)Finds the implementation Class object in the specified order. |
| pack-priv static Object | Returns: Class object of factory, never nullName of the factory to find, same as
a property name factoryId, String The filename in the $java.home/lib directory
of the properties file. If none specified,
${java.home}/lib/xerces.properties will be used. propertiesFilename, String Implementation class name, if nothing else
is found. Use null to mean no fallback. fallbackClassName)Finds the implementation Class object in the specified order. |
| private static void | |
| pack-priv static ClassLoader | |
| private static Object | |
| pack-priv static Class | findProviderClass(String className, ClassLoader cl, boolean doFallback)
Find a Class using the specified ClassLoader |
| private static boolean | |
| pack-priv static Object | newInstance(String className, ClassLoader cl, boolean doFallback)
Create an instance of a class using the specified ClassLoader |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG Set to true for debugging | |
| DEFAULT_LINE_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_LINE_LENGTH Default columns per line. | |
| DEFAULT_PROPERTIES_FILENAME | back to summary |
|---|---|
| private static final String DEFAULT_PROPERTIES_FILENAME | |
| fLastModified | back to summary |
|---|---|
| private static long fLastModified Cache the time stamp of the xerces.properties file so that we know if it's been modified and can invalidate the cache when necessary. | |
| fXercesProperties | back to summary |
|---|---|
| private static Properties fXercesProperties cache the contents of the xerces.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. | |
| ObjectFactory | back to summary |
|---|---|
| pack-priv ObjectFactory() | |
| createObject | back to summary |
|---|---|
| pack-priv static Object createObject(String factoryId, String fallbackClassName) throws ConfigurationError Finds the implementation Class object in the specified order. The specified order is the following:
| |
| createObject | back to summary |
|---|---|
| pack-priv static Object createObject(String factoryId, String propertiesFilename, String fallbackClassName) throws ConfigurationError Finds the implementation Class object in the specified order. The specified order is the following:
| |
| debugPrintln | back to summary |
|---|---|
| private static void debugPrintln(String msg) Prints a message to standard error if debugging is enabled. | |
| findClassLoader | back to summary |
|---|---|
| pack-priv static ClassLoader findClassLoader() throws ConfigurationError Figure out which ClassLoader to use. For JDK 1.2 and later use the context ClassLoader. | |
| findJarServiceProvider | back to summary |
|---|---|
| private static Object findJarServiceProvider(String factoryId) throws ConfigurationError | |
| findProviderClass | back to summary |
|---|---|
| pack-priv static Class Find a Class using the specified ClassLoader | |
| isDebugEnabled | back to summary |
|---|---|
| private static boolean isDebugEnabled() Returns true if debug has been enabled. | |
| newInstance | back to summary |
|---|---|
| pack-priv static Object newInstance(String className, ClassLoader cl, boolean doFallback) throws ConfigurationError Create an instance of a class using the specified ClassLoader | |
| Modifier and Type | Field and Description |
|---|---|
| private Exception | exception
Exception. |
| pack-priv static final long | serialVersionUID
Serialization version.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | ConfigurationError(String msg, Exception x)
Construct a new instance with the specified detail string and exception. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Exception |
| exception | back to summary |
|---|---|
| private Exception exception Exception. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides java. Serialization version. | |
| ConfigurationError | back to summary |
|---|---|
| pack-priv ConfigurationError(String msg, Exception x) Construct a new instance with the specified detail string and exception. | |
| getException | back to summary |
|---|---|
| pack-priv Exception getException() Returns the exception associated to this error. | |