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 | Field and Description |
|---|---|
| private static final boolean | DEBUG
Set to true for debugging |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static ClassLoader | |
| public static Class | findProviderClass(String className, boolean doFallback)
Find a Class using the same classloader for the ObjectFactory by default or bootclassloader when Security Manager is in place |
| public static Class | findProviderClass(String className, ClassLoader cl, boolean doFallback)
Find a Class using the specified ClassLoader |
| private static boolean | |
| public static Object | newInstance(String className, boolean doFallback)
Create an instance of a class using the same classloader for the ObjectFactory by default or bootclassloader when Security Manager is in place |
| public 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 | |
| JAXP_INTERNAL | back to summary |
|---|---|
| private static final String JAXP_INTERNAL | |
| STAX_INTERNAL | back to summary |
|---|---|
| private static final String STAX_INTERNAL | |
| ObjectFactory | back to summary |
|---|---|
| public ObjectFactory() | |
| debugPrintln | back to summary |
|---|---|
| private static void debugPrintln(Supplier<String> msgGen) Prints a message to standard error if debugging is enabled. | |
| findClassLoader | back to summary |
|---|---|
| public static ClassLoader findClassLoader() throws ConfigurationError Figure out which ClassLoader to use. For JDK 1.2 and later use the context ClassLoader. | |
| findProviderClass | back to summary |
|---|---|
| public static Class Find a Class using the same classloader for the ObjectFactory by default or bootclassloader when Security Manager is in place | |
| findProviderClass | back to summary |
|---|---|
| public 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 |
|---|---|
| public static Object newInstance(String className, boolean doFallback) throws ConfigurationError Create an instance of a class using the same classloader for the ObjectFactory by default or bootclassloader when Security Manager is in place | |
| newInstance | back to summary |
|---|---|
| public static Object newInstance(String className, ClassLoader cl, boolean doFallback) throws ConfigurationError Create an instance of a class using the specified ClassLoader | |